lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Apr 19, 2014 at 2:56 PM, Sean Conner <sean@conman.org> wrote:

>   What about metatables?

Hmm, I was aiming for a shallow copy -- deep-copies could be done with
a recursive wrapping function :-)  I'd be really interested to know if
that function works as expected -- I'm not near a compiler today :>

>   I hope you mean "same process" otherwise, you'll have problems with
> pointers in the userdata.

For lightuserdata yes -- also for when ASLR[1] is not in effect I guess?

[1]: http://en.wikipedia.org/wiki/Address_space_layout_randomization