Nested Gosubs

Brian K. White brian at aljex.com
Mon Nov 1 09:29:41 PST 2004


Fairlight wrote:
> At Sun, Oct 31, 2004 at 05:43:41PM -0500 or thereabouts,
> suspect Brian K. White was observed uttering:
>> 
>> I don't think it's something fp should try to second guess. I can
>> imagine totally legitimate routines that enter into a gosub while in
>> one field, and return while in some completely other field. I can't
>> imagine a situation where it _needs_ to be done that way but there
>> might be some but even if not I think that would be a case of fp
>> overstepping it's bounds and dictating programming style.
>> 
>> It might not be technically possible for the interpreter to know for
>> sure the right thing to do anyways given things like goto and
>> fall-through. 
> 
> Wait a second--
> 
> You're telling me that you could have "gosub lunch" in a call at
> @wlf132, and you do a SCREEN at the end, effectively ENDing
> processing...and then on the next screen, you have @wef41 and that
> executes a RETURN, and you think it's going to have any presence of
> where it was in processing?

Sure.

>  I'm finding that a bit hard to believe,
> if all processing -ends- when you hit END or an equivalent (SCREEN).

Since when does an end command end all processing?

Brian K. White  --  brian at aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani



More information about the Filepro-list mailing list