Luiz Henrique de Figueiredo wrote: >> All my Lua files tend to start with the same boilerplate containing > ... >> ...etc. It would be really nice to be able to common this somehow. > > You can write your own lua_Reader function that send this before sending > anything else. Yes, but the line numbers in the debug information will still be wrong --- because the compiler's seen 15 or so lines before the main text starts, all the numbers will be 15 or so out. I've had to deal this before in other languages and it's significantly more of a pain that it seems. Is there any way to reset the compiler's line number count in the middle of a file? -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ │ "All power corrupts, but we need electricity." --- Diana Wynne Jones, │ _Archer's Goon_
Attachment:
signature.asc
Description: OpenPGP digital signature