[futurebasic] Re: [FB] Clear Local Mode

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

From: Brian Stevens <bstevens33@...>
Date: Sat, 19 Jan 2008 18:57:24 -0700
On Jan 19, 2008, at 6:41 PM, Robert Purves wrote:

>
> 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?"

LOL - your descriptions are more entertaining.


Brian S.