[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Proposal] Can we get raw bytecodes?
- From: Coroutines <coroutines@...>
- Date: Fri, 22 Aug 2014 22:27:37 -0700
On Fri, Aug 22, 2014 at 3:59 PM, Thiago L. <fakedme@gmail.com> wrote:
> Here's an example:
>
> Lua:
> rawequals(a,b)
>
> gettable "rawequals" 0 1
> <get a>
> <get b>
> call 1 2
>
> or basically, get "rawequals" from a table, get a, get b, call "rawequals"
>
> JS:
> a === b
>
> or basically, get a, get b, compare
>
> Can we get a === operator and OP_RAWEQ?
>
> (And OP_RAWGET and OP_RAWSET but idk what syntax/operators they would
> use...)
>
I am super confused by what you're asking.
Lua's == is like Javascript's === in that Lua doesn't allow any type
inequality between what's on the left and right-hand side. It is
already a rawequal().