lua-users home
lua-l archive

Re: [ANN] Lua 5.3.4 (rc3) now available

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


> On Jan 25, 2017, at 6:14 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 
> 2017年01月25日 2:44 GMT+02:00 Soni L. <fakedme@gmail.com>:
> 
>> On 24/01/17 10:37 PM, Daurnimator wrote:
>>> And I'm really enjoying the __name in tostring() output!
>>> 
>> 
>> Uh. When do we start parsing tostring() output to figure out an object's
>> type?
> 
> We've been doing it for years for userdata, so it's nice that
> tables are also getting into line.
> 
"Out of line” is more like it. Since when is parsing tostring() output a good way to get type information? As I’ve pointed out before, type() needs to respect an __type() metamethod.
—Tim

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