string.dump (function [, strip])
Returns a string containing a binary representation (a binary chunk) of the given function, so that a later load
on this string returns a copy of the function (but with new upvalues). If strip
is a true value, the binary representation may not include all debug information about the function, to save space.
Functions with upvalues have only their number of upvalues saved. When (re)loaded, those upvalues receive fresh instances containing nil. (You can use the debug library to serialize and reload the upvalues of a function in a way adequate to your needs.)
Please login to continue.