Looking at print 12 == 0xC and print 12 eq 0xC with the eyes of a parser, I see the following:
This works exactly the same with octal constants (014), and makes the code look even more confusing because of the "innocent" zero: Both print 12 == 014 and print 12 eq 014 end printing a 1.
Alexander
In reply to Re^2: Disadvantage of using 'eq' operator to compare numbers.
by afoken
in thread Disadvantage of using 'eq' operator to compare numbers.
by paragkalra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |