lua-users home
lua-l archive

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


> The reason is just for the idiom:
> 	c=settag({},newtag())
> which creates a new table and gives it a new tag at the same time.

That's useful, but confusing: it's not obvious that c becomes a table
rather than a tag. There's one place in my standard library where I could
use that idiom, but prefer not to:

settag(t, tag) return t

instead of

return settag(t, tag)

-- 
http://sc3d.org/rrt/ | Careful Cyclists Approaching From Right