Nested Gosubs

Fairlight fairlite at fairlite.com
Sun Oct 31 15:48:06 PST 2004


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

Have you tested this theory?  I'd be amazed if it works like you think it
does.  Seriously.  I'm curious if this actually works like you say.

mark->
-- 
Bring the web-enabling power of OneGate to -your- filePro applications today!

Try the live filePro-based, OneGate-enabled demo at the following URL:
               http://www2.onnik.com/~fairlite/flfssindex.html


More information about the Filepro-list mailing list