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

Posted by John Lam (DLR) (Guest)
on 2008-01-27 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 2008-01-27 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 2008-01-27 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 2008-01-27 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 2008-01-27 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.