|
On Feb 17, 2008, at 5:40 AM, Duck wrote:
Is there any way to determine that a function is suitable forseriali[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.