[futurebasic] Re: [FB] DEF FN USING in local fn?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2004 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Sun, 12 Sep 2004 08:13:59 +0200
Jay Reeve wrote:
> Robert Purves,
> 
> The Ref Man contains a very clear injunction against using DEF FN USING 
> inside a LOCAL FN.
> 
> Am I recalling correctly that you have established that it's perfectly 
> safe?
> 
> I would like to use it to determine at runtime what comparison fn is 
> called for sorting database fields. Will it work?
> 

Jay,

I guess it's a boo boo in the US manual, because the warning 
(reminiscence of the FBII era) has rightfully disappeared in the 
French Ref manual and even more the DEF FN USING entry contains a 
tiny example showing what you want to do (i.e. using DEF FN USING 
inside a LOCAL FN in LOCAL MODE to spell it out loud).

Alain