[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature request: userdata slice
- From: Daurnimator <quae@...>
- Date: Fri, 21 Aug 2015 17:30:38 +1000
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.
- References:
- Re: Feature request: userdata slice, Philipp Janda
- Re: Feature request: userdata slice, 云风 Cloud Wu
- Re: Feature request: userdata slice, Dirk Laurie
- Re: Feature request: userdata slice, 云风 Cloud Wu
- Re: Feature request: userdata slice, Dirk Laurie
- Re: Feature request: userdata slice, Dirk Laurie
- Re: Feature request: userdata slice, Tim Hill
- Re: Feature request: userdata slice, William Ahern
- Re: Feature request: userdata slice, Roberto Ierusalimschy
- Re: Feature request: userdata slice, Rena
- Re: Feature request: userdata slice, Roberto Ierusalimschy
- Re: Feature request: userdata slice, Daurnimator
- Re: Feature request: userdata slice, 云风 Cloud Wu
- Re: Feature request: userdata slice, Daurnimator