What steps will reproduce the problem?
1. In Conditionals section of tutorial
(http://www.cat-language.com/tutorial.html), read the example code:
1 1 +
eq 2
["As I expected!"]
["I need to be repaired!"]
if
Note that "eq" before the 2 makes no sense: at that point, there is only
one value on the stack, therefore eq (which takes two arguments) should
cause an error. Presumably, the intended code was
1 1 +
2 eq
...
2. Enter the sample code in the interpreter: 1 1 + eq 2
What is the expected output?
true (on the stack)
What do you see instead?
false 2 (on the stack)
What version of the product are you using? On what operating system?
Tutorial at http://www.cat-language.com/tutorial.html as of April 21, 2008.
Please provide any additional information below.
Cool language, enjoyed the Dr Dobbs article.
Original issue reported on code.google.com by hutt...@gmail.com on 22 Apr 2008 at 5:11
Original issue reported on code.google.com by
hutt...@gmail.com
on 22 Apr 2008 at 5:11