Re: Just starting with IronRuby; problem with rbx

#1

We don’t have local variables working in the console. Use instance or
globals instead when running interactive mode.

  • John
    Sent from my phone
#2

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 © Microsoft Corporation. All rights reserved.

= Local variables not yet working - use instance or globals =

#3

Peter Bacon D.:

0.1
Copyright © 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

#4

On Jan 27, 2008 12:22 PM, Peter Bacon D.
removed_email_address@domain.invalid wrote:

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


Greg A.
Software Development Manager
SSI Services

http://kc.vanadium.com
http://www.pghcodingdojo.org
http://www.insomnia-consulting.org/monologue

#5

Greg A.:

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