[futurebasic] Re: [FB] Clear Local Mode

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

From: Robert Purves <listrp@...>
Date: Sun, 20 Jan 2008 14:41:20 +1300
Steve wrote:

>  Brian Stevens wrote:
>> 1) Global vars cannot be used in a local FN with a "clear local  
>> mode" header, so global var usage in FN IterateFolder is DOA.
> Why must this local fn use clear local mode or when should it be  
> used ?

'local mode' advertises purity-of-heart. It means "This function  
references no global variables, and therefore avoids a potent cause of  
difficulty in understanding and debugging".

'clear' advertises laziness. It means "Some local vars may need to be  
zeroed initially, but I can't be bothered working out which, if any,  
so I'll just zero the lot. Who cares about efficiency?"
As a matter of policy, 'clear' is not allowed in the source for FBtoC.

Robert P.