lua-users home
lua-l archive

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


Due to their convenience, it is tempting to use the rawget/seti API functions for accessing arrays. However, because of the raw access, they will fail when given a proxy table. I think with the new generator functionality shown in 4.1work, proxies will become more common. Perhaps there should be a normal get/seti also?

Another minor issue about these two functions is that they are the only members of the API that don't have the stack index as the last argument(s). This foils use of default stack arguments in C++ wrappers. In the next X.0 release, please consider swapping the index and n arguments. (Of course they can just be switched in the wrapper, but that is an unpleasant surprise for users familiar with the C interface.)


-John


--
OpenPGP encrypted mail welcome.