# Re: Just starting with IronRuby; problem with rbx

**URL:** <https://www.ruby-forum.com/t/re-just-starting-with-ironruby-problem-with-rbx/127274>\
**Category:** IronRuby\
**Created:** [January 27, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/re-just-starting-with-ironruby-problem-with-rbx/127274 "2008-01-27T17:15:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_LSSDLR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Post date:** [January 27, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/re-just-starting-with-ironruby-problem-with-rbx/127274/1 "2008-01-27T17:15:17Z")

</div>

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

- John  
Sent from my phone

---

<div class="post-metadata">

**Author:** ![John\_LSSDLR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Post date:** [January 27, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/re-just-starting-with-ironruby-problem-with-rbx/127274/2 "2008-01-27T18:22:50Z")

</div>

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 =

---

<div class="post-metadata">

**Author:** ![John\_LSSDLR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Post date:** [January 27, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/re-just-starting-with-ironruby-problem-with-rbx/127274/3 "2008-01-27T19:07:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![John\_LSSDLR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Post date:** [January 27, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/re-just-starting-with-ironruby-problem-with-rbx/127274/4 "2008-01-27T19:55:37Z")

</div>

On Jan 27, 2008 12:22 PM, Peter Bacon D.  
[removed\_email\_address@domain.invalid](mailto: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://kc.vanadium.com)  
[http://www.pghcodingdojo.org](http://www.pghcodingdojo.org)  
[http://www.insomnia-consulting.org/monologue](http://www.insomnia-consulting.org/monologue)

---

<div class="post-metadata">

**Author:** ![John\_LSSDLR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Post date:** [January 27, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/re-just-starting-with-ironruby-problem-with-rbx/127274/5 "2008-01-27T20:00:55Z")

</div>

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
