lua-users home
lua-l archive

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


> Is there a way to do that in C?

Yes, take a look at print.c in the source distribution and adapt PrintCode.
 
> I want to keep the lua script as simple as possible.

There's also lbci, my bytecode inspector. You can redefined dofile or
loadfile to perform the detect duplicate field names after the file is
loaded but before it is run.