21 Sep
2007
21 Sep
'07
8:17 a.m.
Hello,
Yesterday I noticed that when \dump-ing a format file, the Lua states are not dumped as well, discarding all initializations made while creating the format.
this is the reason for the bytecode registers; these are saved; you can store luacode in there and initialize that at runtime (when the format is loaded); there is no pre-cooked behaviour, it's under your control; depending on the amount of code to be loaded, it makes sense to use this mechanism or not (loading lua code is rather fast)
Thanks for your answer! After reading up on bytecode registers in the manual, one question is left, though: How many of them are there? The usual 65536? Thanks in advance, Jonathan