Bug#513320: Acknowledgement (arithmetic expression fails to work)

2009-01-28 Thread Jayen Ashar
I added this to comparison_operator.rb: file = File.open(/tmp/puppet_debug.txt,a) file.puts lval file.puts operator file.puts rval retval = lval.send(@operator,rval) file.puts retval

Bug#513320: Acknowledgement (arithmetic expression fails to work)

2009-01-28 Thread Jayen Ashar
some more odd outputs: 271 1274 true 0 == 0 false Jayen Ashar wrote: I added this to comparison_operator.rb: file = File.open(/tmp/puppet_debug.txt,a) file.puts lval file.puts operator file.puts rval retval =

Bug#513320: Acknowledgement (arithmetic expression fails to work)

2009-01-28 Thread Jayen Ashar
I changed it again: def evaluate(scope) file = File.open(/tmp/puppet_debug.txt,a) # evaluate the operands, should return a boolean value lval = @lval.safeevaluate(scope) rval = @rval.safeevaluate(scope) file.puts rval.class

Bug#513320: Acknowledgement (arithmetic expression fails to work)

2009-01-28 Thread Jayen Ashar
upgrading from 0.24.6 to 0.24.7-2 seems to fix this bug Jayen Ashar wrote: I changed it again: def evaluate(scope) file = File.open(/tmp/puppet_debug.txt,a) # evaluate the operands, should return a boolean value lval = @lval.safeevaluate(scope)