rosejn/lua-util — pull request #2 by fidlej (2012-10-02 15:32:48+00:00)
Title: Avoided serialization issues with warn

When using the checking for "self", File.writeObject() was failing on a net with shared weights.
I now avoided using of an extra metatable. The checking for "self" is now done by a debug hook.

Personally, I import the "util.warnself" module, only when running with a debug log level.
The checking makes things 2-times slower.