[futurebasic] Re: [FB] Movement of code to the under

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

From: Brian Stevens <bstevens33@...>
Date: Tue, 22 Apr 2008 15:38:57 -0700
On Apr 22, 2008, at 12:58 PM, Michele Neri wrote:

> If you really want to use the ancient gosub/return structure


Michele is rightly trying to steer you away from using gosub. My  
suggestion is simple: if using FBtoC replace gosubs with local FNs.   
Besides all the known benefits of local FNs, FBtoC translates them  
directly into a C function by the same name. This makes it much  
easier to follow the code in the debugger. As Michele pointed out,  
gosubs have some inherent weaknesses that could lead to subtle bugs  
in your code.


Brian S.