lua-users home
lua-l archive

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


tostring should be named _TOSTRING, package.preload should be named package._PRELOAD, package.loaded -> package._LOADED, etc...

Wait uhh... maybe not the package tables as Lua doesn't use the package table to look them up... but definetly _TOSTRING as print() uses it.

--

For real tho, what's the rationale behind not calling it _TOSTRING? (also for metamethods - why not _EQ, _NE, _INDEX, _NEWINDEX etc?)
-- 
Disclaimer: these emails are public and can be accessed from <TODO: get a non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.