lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Asko Kauppi wrote:
The approach is good in that it keeps all patching on the parser/coder side, and runtime area is untouched. Later, there is a chance to optimize with a new VM code if needed.

I thought about avoiding patching at all... You can supply your own equivalent to loadstring/loadfile. It will transform source and load it through old loadstring.

Pros:

- No need to patch anything
- No need to understand VM magic

I tried to imagine a feature that cannot be done in such a way, but failed.

--
e.v.e