lua-users home
lua-l archive

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

Just rewrite string.dump and use debug.getupvalue to do a sanity check

> Alternatively, you could string.dump, pcall( load ) your function to
> sanity check it first.

It's probably undesirable that the function is called when it's dumped :P


-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant