Fixing first part of #614 -- improperly cached existential operator, when first operand is a function call.

This commit is contained in:
Jeremy Ashkenas
2010-08-14 16:24:05 -04:00
parent 1d6eca76f8
commit c90a75ebc5
3 changed files with 22 additions and 18 deletions

View File

@@ -17,9 +17,13 @@ ok a is 10 and b is 10
# The existential operator.
z = null
x = z ? "EX"
ok z is null and x is "EX"
i = 9
func = -> i += 1
result = func() ? 101
ok result is 10
# Only evaluate once.
counter = 0