in reply to Re: Disadvantage of using 'eq' operator to compare numbers.
in thread Disadvantage of using 'eq' operator to compare numbers.

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

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)