Jonathan Sauer wrote:
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?
more -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------