Re: Userdata Environments
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Userdata Environments
- From: "Wesley Smith" <wesley.hoke@...>
- Date: 2007年2月13日 19:42:00 -0800
BTW,
Is it common for environment tables to have metatables? In alot of
the environment udata examples, I see lua_gettable(L, -2); when
getting a field from the environment table as opposed to lua_rawget().
This makes sense for metatable access in the fallback case, but I
can't think of a circumstance in which an environment metatable would
be used.
wes