Problem with ironruby on mono

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 a
unknown: undefined local variable or method a' for main:Object (NoMethodError) b = a + 1 unknown: undefined local variable or method a’ for main:Object
(NoMethodError)
a.class
unknown: 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 [email protected]:

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.

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 S. [email protected] wrote:


Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core


Michael L.
[Polymath Programmer]
http://michaeldotnet.blogspot.com