Hi all, I''ve successfully compiled (with rake compile mono=1) IronRuby under Linux with Mono but whe I try to execute some code I get a strange behaviour, for example: $ mono rbx.exe 0.1 Copyright (c) Microsoft Corporation. All rights reserved.>>> a = 1=> 1>>> puts aunknown: undefined local variable or method `a'' for main:Object (NoMethodError)>>> b = a + 1unknown: undefined local variable or method `a'' for main:Object (NoMethodError)>>> a.classunknown: undefined local variable or method `a'' for main:Object (NoMethodError)>>>and so on... where''s the problem? some info: $ mono -V Mono JIT compiler version 1.9 (/trunk/ r95320) Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: x86 Disabled: none $ mono rbx.exe -V IronRuby 0.1 on .NET 2.0.0.0 TIA, ras
2008/2/9, ras <raskovic at interfree.it>:> >>> a = 1 > => 1 > >>> puts a > unknown: undefined local variable or method `a'' for main:Object (NoMethodError)This is a known IronRuby problem and unrelated to Mono. -- Seo Sanghyeon
To be specific, local variables are not supported interactively, use global or instance variables. Really need to get that disclaimer compiled in.... On Feb 9, 2008 6:47 AM, Sanghyeon Seo <sanxiyn at gmail.com> wrote:> 2008/2/9, ras <raskovic at interfree.it>: > > >>> a = 1 > > => 1 > > >>> puts a > > unknown: undefined local variable or method `a'' for main:Object (NoMethodError) > > This is a known IronRuby problem and unrelated to Mono. > > -- > Seo Sanghyeon > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-- Michael Letterle [Polymath Programmer] http://michaeldotnet.blogspot.com