Re: Seriali[sz]ation of functions...
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Seriali[sz]ation of functions...
- From: "Patrick Donnelly" <batrick.donnelly@...>
- Date: 2008年2月17日 02:12:04 -0700
Just rewrite string.dump and use debug.getupvalue to do a sanity check
yourself.
> 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
Cheers,
--
-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