lua-users home
lua-l archive

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


On 12/31/08, Lee Hickey <lahickey@gmail.com> wrote:
> Just found this while surfing about:
>
> http://julien.danjou.info/blog/index.php/post/2008/12/30/Rants-about-Lua
>   

I personally think the criticism of __index/__newindex & __len
metamethod functions is valid.

I don't understand why the '#' syntax does not use the __len metamethod
function for tables when it is respected elsewhere. The only thing I can
think of is that there might be some bad code elsewhere it might break
or that the "original developers" simply overlooked it.

The __index/__newindex method thing I can actually understand, on the
other hand - I would like to see the __useindex metamethod patch from
the "Lua Power Patches" investigated. The only reason I don't use it at
the moment is it breaks LuaJIT, and the only reason I haven't whined
about that is I know Mike is working on a new LuaJIT...

-- 
Regards,

Benjamin Tolputt
Analyst Programmer

This email and any files transmitted with it are confidential to the
intended recipient and may be privileged. If you have received this
email inadvertently or you are not the intended recipient, you may not
disseminate, distribute, copy or in any way rely on it. Further, you
should notify the sender immediately and delete the email from your
computer. Whilst we have taken precautions to alert us to the presence
of computer viruses, we cannot guarantee that this email and any files
transmitted with it are free from such viruses.