|
Hi Luiz, On 18/04/13 10:04, Luiz Henrique de Figueiredo wrote:
Is there a complete example for LUA 5.2.2 that shows setup, creation, method definition, and garbage collection on userdata Try one of my libraries at http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/ , for instance lrandom.
Thankyou. lrandom seems to be a good example of what I was after- short and sweet, wrapping just one type with a handful of operations.
There doesn't seem to be a "__gc" call though- would I be correct in assuming that it isn't there as MT doesn't really need specific cleanup during garbage collection?
Cheers, Garth