in reply to Re: implicit data typecast
in thread implicit data type exchange
In any case, you'll find a full and complete explanation of the output from your OP by reading about eq and == which do NOT perform the same test.
Update, repeating Annonymonk's above: eq is used when testing for string equality; ==, for numeric equality. Also as noted above, warn will let you know if you abuse ==. But the bottom line is, I think, that (in the best of all possible worlds) different languages can serve different needs and can, therefore, be expected to call upon the programmer to use approprikate methods for each.
Or, as others have suggested, your work (and your life) will be made easier if you understand your tools before attempting to use them
|
|---|