dao icon indicating copy to clipboard operation
dao copied to clipboard

Inconsistent handling of equality operator

Open Night-walker opened this issue 10 years ago • 0 comments

(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 ";

Night-walker avatar Sep 10 '15 14:09 Night-walker