lua-users home
lua-l archive

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

On Feb 17, 2008, at 5:40 AM, Duck wrote:

Is there any way to determine that a function is suitable for
seriali[sz]ation with string.dump() other than by using debug.getupvalue()
to check if it has upvalues?

What's wrong with debug.getupvalue?

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