|
于 2012-6-16 8:07, Sven Olsen 写道:
well, if you would only have one object, it's totally OK to leave out the `self' or `:' syntax, and use the __proto__ as an upvalue however, if you might have lots of objects to wrap, each with its own wrapper table, then you must store this wrapper -> real object map somewhere, either internal (a field of self) or external (use a weak map table). |