Hi, all, I''m new to the list, as I''m interested in getting involved in the IronRuby project (combine my two loves: ruby and C#). I followed John''s video on downloading and installing it, and I noticed one major difference: there is no release folder. Instead, I find rbx.exe in the c:\svn\trunk\build\debug. When I cd into it and run it, the console comes up. I can do the first step a = [1,2,3] but, when I try to do anything with a, it throws a System.MissingMethodException: undefined local variable or method ''a'' for main:Ruby.Builtins.RubyClass Any thoughts? Also, here is a jinq video capture of the thing: http://screencast.com/t/XXlL4EluXK5 -Corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20080113/d2650e52/attachment.html
I believe this is due to a bug (for now) in rbx.exe regarding local variables. I think the current advice is to make the variable a global like so: @a = [1, 2, 3] Hope this helps Terence
Thanks, Terrence, that worked! -Corey On Jan 13, 2008 1:53 PM, Terence Lewis <lewistm at gmail.com> wrote:> I believe this is due to a bug (for now) in rbx.exe regarding local > variables. I think the current advice is to make the variable a global > like so: > > @a = [1, 2, 3] > > > Hope this helps > > > Terence > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20080113/ce8a14a7/attachment.html
Terence Lewis wrote:> I believe this is due to a bug (for now) in rbx.exe regarding local > variables. I think the current advice is to make the variable a global > like so: > > @a = [1, 2, 3]@ is for instance variables. $ is for globals. The above code assigns [1,2,3] to the instance variable @a on the toplevel object. - Charlie