[futurebasic] Sylvain suggests fast subroutines

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

From: lcs@...
Date: Fri, 27 Apr 2001 03:19:37 +0200 (MEST)

jonnathan wrote:

 > 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 suggest that the keyword FN not be used since the specs would be
too different from those of FB^3 FNs.  What about the syntax:

BEGIN SN MySub% // SN for SubroutiNe!!
...
END SN
...
x%=MySub% 
...

??

What the specs should be is a matter worth debating; maybe Sylvain
has some clear ideas.

Cheers

Laurent S.