It was thus said that the Great Dirk Laurie once stated:
> 2017-03-04 8:32 GMT+02:00 Petri Häkkinen <firstname.lastname@example.org>:
> > Why all the trouble? I mean, you could just use free functions:
> > object_system_func(a, b, c)
> > This is faster (no need for nested dynamic table look ups) and
> > there is no need for "self" parameter that is magically more
> > important than the others.
> I and others replied to the above in the thread "Lua and composition",
> but maybe it deserves a thread of its own.
> Let me take an example from the only userdata objects supplied with
> Lua, namely files.
> One can write:
I tried that code and I got:
lua: /tmp/xx.lua:3: attempt to index a nil value
/tmp/xx.lua:3: in main chunk
It took me awhile  to figure out the problem, and I had to rewrite the
It should be:
when you use in production code.