[MacRuby] #1495: misses the evaluation order to create Range object.
MacRuby
ruby-noreply at macosforge.org
Thu Apr 5 08:05:17 PDT 2012
#1495: misses the evaluation order to create Range object.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
To create Range object, it seems that MacRuby evaluates the Range's end at
first.
{{{
$ ruby19 -e 'p (x = 0) .. (x + 1)'
0..1
$ macruby -e 'p (x = 0) .. (x + 1)'
-e:in `<main>': undefined method `+' for nil:NilClass (NoMethodError)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1495>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list