Forum: IronRuby local variables: Ruby vs. IronRuby difference?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E1e2dd8c03c8e9e0680cfd802df0a04b?d=identicon&s=25 Alex 2k8 (alex_2k8)
on 2009-01-09 01:53
Hello,


Ruby:

  irb(main):001:0> foo = 3
  => 3
  irb(main):002:0> foo
  => 3

IronRuby:

  >>> foo = 3
  => 3
  >>> foo
  :0: undefined method `foo' for main:Object (NoMethodError)


Any idea, why this error thrown by IronRuby?

- Alex
Cb51033949ffccd982ae32c9f890f25a?d=identicon&s=25 Tomas Matousek (Guest)
on 2009-01-09 03:04
(Received via mailing list)
I fixed this a couple days ago. Don't know whether it has already been
pushed out. Jim?

Tomas
68f1bd9e9a7d9d10f0278c6535f700fe?d=identicon&s=25 Michael Letterle (Guest)
on 2009-01-09 08:09
(Received via mailing list)
wait.... wait... Does this mean... we're getting LOCAL variables in the
ir
REPL!?!?!?

On Thu, Jan 8, 2009 at 8:28 PM, Tomas Matousek
<Tomas.Matousek@microsoft.com
Ade8632553a9243ae05fc920f68644c1?d=identicon&s=25 Jim Deville (Guest)
on 2009-01-09 08:16
(Received via mailing list)
y.e.s.

:)

From: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Michael
Letterle
Sent: Thursday, January 08, 2009 10:26 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] local variables: Ruby vs. IronRuby
difference?

wait.... wait... Does this mean... we're getting LOCAL variables in the
ir REPL!?!?!?
On Thu, Jan 8, 2009 at 8:28 PM, Tomas Matousek
<Tomas.Matousek@microsoft.com<mailto:Tomas.Matousek@microsoft.com>>
wrote:
I fixed this a couple days ago. Don't know whether it has already been
pushed out. Jim?

Tomas
Cb51033949ffccd982ae32c9f890f25a?d=identicon&s=25 Tomas Matousek (Guest)
on 2009-01-09 08:38
(Received via mailing list)
Yep. See also my blog post - http://blog.tomasm.net.

Tomas

From: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Michael
Letterle
Sent: Thursday, January 08, 2009 10:26 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] local variables: Ruby vs. IronRuby
difference?

wait.... wait... Does this mean... we're getting LOCAL variables in the
ir REPL!?!?!?
On Thu, Jan 8, 2009 at 8:28 PM, Tomas Matousek
<Tomas.Matousek@microsoft.com<mailto:Tomas.Matousek@microsoft.com>>
wrote:
I fixed this a couple days ago. Don't know whether it has already been
pushed out. Jim?

Tomas
E1e2dd8c03c8e9e0680cfd802df0a04b?d=identicon&s=25 Alex 2k8 (alex_2k8)
on 2009-01-09 12:22
This topic is locked and can not be replied to.