[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The call "tag" in 5.0-work0
- From: Tom Wrensch <twrensch@...>
- Date: Wed, 10 Jul 2002 15:47:16 -0700 (PDT)
On Thu, 11 Jul 2002, [iso-8859-1] Björn De Meyer wrote:
> Tom Wrensch wrote:
> >
> > Sorry, just answered by own dumb question. You need to put underscores
> > before the name in 5.0 work 0.
> >
>
> Hmm... is this to facilitate the use of tables as their own
> metatables? Or is that not allowed?
Well, I tried this:
> t = {}
> metatable(t,t)
> t.__call = function(...) print(unpack(arg)) end
> t(1,2,3)
table: 003FDCB0 1 2 3
In Lua 5.0 work-0 and it worked just fine. So I'd have to say that it is
definitely allowed. Opens up some interesting possibilities, doesn't it?
- Tom