|
From: | Bo Lorentsen |
Subject: | Re: [glob2-devel] Language demands |
Date: | Mon, 20 Jun 2005 18:22:16 +0200 |
User-agent: | Debian Thunderbird 1.0.2 (X11/20050602) |
Martin Voelkle wrote:
Thanks for the hint, this was what i intented. I use a index possition as a PC (vector iterator), and will store return addresses as this, too. But you are right, pointers are a pitfall :-)Since you maintain the call stack, you just need to push the address of the instruction after the call (don't use a pointer if you want to be able to save/restore it), jump to the address of the call and do the reverse on method return.
Treat these external functions as atomic instructions and make sure they don't call script functions. Since they are part of glob2, we can trust them as for bugs (hopefully).
Yeps, loopback to the language will go wrong :-)
My fault, it was words i found in there FAQ, sorry (http://www.lua.org/faq.html#1.7) !I'm sorry, I don't see that kind of wording in the license: http://www.lua.org/license.html
/BL
[Prev in Thread] | Current Thread | [Next in Thread] |