Ticket #298 (closed defect: fixed)
macirb loses track of local variables
| Reported by: | mharper@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | major | Milestone: | MacRuby 0.5 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
macirb loses track of local variables.
After a clean test and install of the latest experimental branch on Snow Leopard (10A411), I fired up macirb for a quick test. macirb starts fine and gives me a prompt. But when I create a simple local variable and assign a string value to it, then try printing the variable, macirb throws an exception:
mharper$ macirb irb: warn: can't alias exit from irb_exit. irb(main):001:0> a = "hello" => "hello" irb(main):002:0> puts a NameError: undefined local variable or method `a' for main:TopLevel
from 0:in `eval:' from 0:in `evaluate:' from 0:in `evaluate:' from 0:in `signal_status:' from 0:in `each_top_level_statement' from 0:in `eval_input' from 0:in `start:'
irb(main):003:0> exit
macirb -v => irb 0.9.5(05/04/13)

