dao
dao copied to clipboard
Inconsistent handling of equality operator
(dao) 'a' == 1
= false
(dao) s = 'a'
= a
(dao) s == 1
[[ERROR]] in file "interactive codes":
At line 0 : Invalid function definition --- " __main__() ";
At line 1 : Invalid virtual machine instruction --- " EQ:0,1,2 ";
In code snippet:
1 : DATA_I : 2 , 1 , 1 ; 1; 1
>> 2 : EQ : 0 , 1 , 2 ; 1; s == 1
3 : RETURN : 2 , 1 , 0 ; 1; s == 1
At line 1 : Invalid operation on the type --- " s == 1 ";