lua-users home
lua-l archive

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


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().