[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Implementing GOTO/GOSUB
- From: Asko Kauppi <asko.kauppi@...>
- Date: Mon, 13 Sep 2004 21:08:19 +0300
The meaning was that the return address is computed at compile time (by
cpp). There's a '#LINE' or some directive for that.. Anyhow, I know my
mail was fuzzy.. :)
-ak
13.9.2004 kello 20:47, Luiz Henrique de Figueiredo kirjoitti:
Well, you can emulate GOSUBs with GOTO, can't you.. (just conceptually,
Yes, but not in the way I did it: I rewrite the bytecode and so I
needed
fixed JMP targets, not computed in run time, as in your
__GOTO=__RETURN_TO.
I think the VM needs to be changed to support GOSUBs.
--lhf