lua-users home
lua-l archive

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




Daurnimator <quae@daurnimator.com>于2015年8月21日周五 上午9:35写道:

On 21 August 2015 at 08:48, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> So different metatable for 4 than for 5? That would be... interesting.
>
> Actually, different fours could have different metatables :-)
 
  - following table semantics, there will always be a 'primary'
subtype that is used when the object is a table key

I think different fours can be different table key, because file handle 4 is different from numerical 4 . It's reasonable.