[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Case insensitive global
- From: "kaishaku13" <kaishaku13@...>
- Date: Wed, 13 Mar 2002 22:56:00 -0000
I am confused, does this mean global variables themselves
are part of a tag for which I can define tag methods?
Can you elaborate?
--- In lua-l@y..., "Peter Prade" <prade@p...> wrote:
> Of course you could set tagmethods to make lua treat global
variables case
> insensitive.
> (this won't work with locals though)
>
> Cheers,
> Peter
>
> > -----Original Message-----
> > From: owner-lua-l@t...
> > [mailto:owner-lua-l@t...]On Behalf Of Luiz Henrique de
> > Figueiredo
> > Sent: Wednesday, March 13, 2002 7:41 PM
> > To: Multiple recipients of list
> > Subject: Re: Case insensitive global
> >
> >
> > >I am using lua_setglobal to set a global userdata with
> > >associated tag methods, etc... It only works if it is
> > >accessed with the exact case/capitalization as defined.
> > >
> > >Other variables are not like this, so I am wondering
> > >if it is possible to make globals act the same.
> >
> > Lua is case-sensitive. *All* variable names depend on
capitalization.
> > --lhf