Page 1 of 1
Posted: Wed Apr 09, 2003 1:58 pm
by BackupUser
Restored from previous forum. Originally posted by dmoc.
.
Posted: Wed Apr 09, 2003 3:21 pm
by BackupUser
Restored from previous forum. Originally posted by Sebi.
You can do this in the current version of PB with already with the following code:
But I agree! The message 'GoSub not allowed inside a Procedure' is not very useful.
Posted: Wed Apr 09, 2003 4:48 pm
by BackupUser
Restored from previous forum. Originally posted by dmoc.
Cheers Sebi, I didn't know that!
Posted: Wed Apr 09, 2003 6:27 pm
by BackupUser
Restored from previous forum. Originally posted by tinman.
Originally posted by Sebi
But I agree! The message 'GoSub not allowed inside a Procedure' is not very useful.
Would there be stack problems if you Gosub'bed out of a procedure? Not in the sense that your stack would get mangled, but if you jumped into some global code or another procedure then variables would not necessarily be in the same indexed memory locations.
Although I think global variables are always accessed absolutely?
Allowing gosub within a procedure might be OK?
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, external editor)