lua-users home
lua-l archive

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


On 21 August 2015 at 17:27, Daurnimator <quae@daurnimator.com> wrote:
> Quick poll:
>   - Should filehandle(4) == integer(4)?
>   - Should rawequal(filehandle(4), integer (4)) == true?
>   - Should t = {}; t[filehandle(4)] = "foo"; t[integer(4)] == "foo"?
>   - Should next({[filehandle(4)]=true}) == integer(4)?
>   - Should rawequal(next({[filehandle(4)]=true}), integer(4))?
>
> Currently with lua 5.3 and s/filehandle/float/:
>   - Yes
>   - Yes
>   - Yes
>   - Yes
>   - Yes

My personal thoughts:
  - Yes
  - No
  - No
  - Yes
  - No

i.e. subtypes are not rawequal, and table key equality follows raw equality.