lua-users home
lua-l archive

Re: No way to get uservalue count from API; intended?

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


> Is there a reason not to include the ability to read the number of
> uservalues associated with a userdata
> (lua_getiuservalue()/lua_setiuservalue()) into the API?
No specific reason except the usual (to avoid bloating the API with
functions seldom used.)
> That would
> allow a slightly more efficient tuple implementation, among other
> things...
Would you mind sharing with us that implementation and the other things?
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /