[futurebasic] Re: [FB] SUBs ?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2003 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Sun, 9 Feb 2003 15:44:57 -0500
On Sunday, February 9, 2003, at 03:36  PM, Scott Spencer wrote:

> It always been my understanding that GoSubs were faster than Local 
> FNs, but Local FNs are preferable for a number of reasons (e.g more 
> Modular, no spaghetti code, etc.).
>
> I'll take Local FNs any day.  It's one of the reasons I didn't use PG 
> all that much.  If PG's code used Local FN's exclusively only, and 
> followed the standard .main file conventions (e.g. the main file 
> contains the main handleevents loop, and everything else flows from 
> there) I think I would have "gotten it" better and used it more.
>
> On Sunday, February 9, 2003, at 12:02  PM, Robert Covington wrote:
>
>> Speed matters even on the fast ones. Normally it is something 
>> graphics , or mathematic related.
>>
>> For graphics for instance, all things should happen instantly, 
>> without any CPU cycles in between. :)
>>
> ----
> Scott Spencer
> sj3@...

That is the reason why I haven't taken to PG as well.
It has its benefits, but...

Anyhow, I use Local FN too. Never use GOSUB. I do use GOTO though for 
cheap exits. :)

I was just saying that even on a fast machine, speed of execution still 
matters.

The only place where speed of execution isn't an issue is in Texas. 
(offlist if you must)

Robert Bob