[futurebasic] Re: [FB] Sylvain suggests fast subroutines

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2001 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Fri, 27 Apr 2001 13:51:55 +1200
> > sylvain also pleaded for a function that has the speed of a gosub,
> > as he wants to make his plugins as fast as possible. we all know
> > that gosubs are fast, so perhaps the possibility of a global fn,
> > could be looked at by our programming betters.
>
>I heartily approve Sylvain's suggestion. GOSUB itself has trashy
>syntax that mars the beauty of a program.



I have placed in the FutureBasic.org dropbox a set of three files with demo
examples that go some way to meeting Sylvain's request.

<ftp://ftp.futurebasic.org/FutureBasic/dropbox/Low-overhead_FNs.sit>

(about 5K download)

The examples show how a FN can be made into a low-overhead type, to give
similar speed to GOSUB. The syntax of a call to the superfast FNs is the
same as for a regular LOCAL FN.
I believe therefore that extensions to the FB^3 language syntax are neither
required nor desirable.


Robert P.