We don't have local variables working in the console. Use instance or globals instead when running interactive mode. - John Sent from my phone
on 27.01.2008 17:15
on 27.01.2008 18:22
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 = =============================================================
on 27.01.2008 19:07
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
on 27.01.2008 19:55
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
on 27.01.2008 20:00
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