Ruby Forum IronRuby > Re: Just starting with IronRuby; problem with rbx

Posted by John Lam (DLR) (Guest)
on 27.01.2008 17:15
(Received via mailing list)
We don't have local variables working in the console. Use instance or 
globals instead when running interactive mode.

- John
Sent from my phone
Posted by Peter Bacon Darwin (Guest)
on 27.01.2008 18:22
(Received via mailing list)
Perhaps you should add a little message on the console when you run up
rbx.exe till this is fixed?
E.G.

C:\Projects\IronRuby\Bin\Debug>rbx
0.1
Copyright (c) Microsoft Corporation. All rights reserved.
=============================================================
= Local variables not yet working - use instance or globals =
=============================================================
Posted by John Lam (DLR) (Guest)
on 27.01.2008 19:07
(Received via mailing list)
Peter Bacon Darwin:

> 0.1
> Copyright (c) Microsoft Corporation. All rights reserved.
> =============================================================
> = Local variables not yet working - use instance or globals =
> =============================================================
> >>>

Doh. Great idea! I'll add it the next time around.

-John
Posted by Greg Akins (Guest)
on 27.01.2008 19:55
(Received via mailing list)
On Jan 27, 2008 12:22 PM, Peter Bacon Darwin 
<bacondarwin@googlemail.com> wrote:
>
> >>>

This appeared to be working in the "Get/Build" screencast.  Did it 
disappear

--
Greg Akins
Software Development Manager
SSI Services

http://kc.vanadium.com
http://www.pghcodingdojo.org
http://www.insomnia-consulting.org/monologue
Posted by John Lam (DLR) (Guest)
on 27.01.2008 20:00
(Received via mailing list)
Greg Akins:

> This appeared to be working in the "Get/Build" screencast.  Did it
> disappear

Yep. It was a hack that was removed at around the time of RubyConf. It 
has to do with how we compile the line of code and what context that 
code gets compiled into. You need to save your local context across 
compilations for your locals to show up the next time around. This 
problem doesn't exist when we compile files as opposed to lines.

At some point we'll be able to just run irb instead of our own console. 
To run irb, we'll need the same set of features that we require for our 
own console. Shouldn't be much longer before that's working.

-John