[futurebasic] Re: [FB] usr and def considered harmful

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2009 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Wed, 7 Oct 2009 06:46:48 -0400
On Oct 6, 2009, at 9:44 PM, Robert Purves wrote:

>
> Robert Covington wrote:
>
>>> The familiar names (ApplescriptRun, CheckOneItem,  
>>> SetButtonFontStyle, ReplaceResource...) will continue to  
>>> highlight as keywords even when prefaced by 'fn'; I hope that  
>>> this allays your concern for 'intuitiveness'.
>>
>> Was seeking something to delineate the soon to be less visibly  
>> categorized Usr (as in User helping) denizens from the usual  
>> toolboxes, keywords, etc. so one knows what is what.
>>
>> So as to avoid having things like my and others Fn FsFileExists  
>> from colliding with the new USR item which will now be the same  
>> name, I reckon, along with anything else that now becomes generic.
>
> Since its first release in January 2008, FBtoC has never allowed  
> multiple functions with the same name.
>
> include "Util_Files.incl"
> local fn FSFileExists // •• Redefined function
> end fn
>
> Robert P.

You are correct. I fired up FB4 to test that. It's smarter that way,   
can discern between a Local FN and a USR.

Robert