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.
Alex 2. (Guest)
on 2009-01-09 02: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
Tomas M. (Guest)
on 2009-01-09 04:04
(Received via mailing list)
I fixed this a couple days ago. Don't know whether it has already been
pushed out. Jim?

Tomas
Michael L. (Guest)
on 2009-01-09 09: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 M.
<removed_email_address@domain.invalid
Jim D. (Guest)
on 2009-01-09 09:16
(Received via mailing list)
y.e.s.

:)

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Michael
Letterle
Sent: Thursday, January 08, 2009 10:26 PM
To: removed_email_address@domain.invalid
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 M.
<removed_email_address@domain.invalid<mailto:removed_email_address@domain.invalid>>
wrote:
I fixed this a couple days ago. Don't know whether it has already been
pushed out. Jim?

Tomas
Tomas M. (Guest)
on 2009-01-09 09:38
(Received via mailing list)
Yep. See also my blog post - http://blog.tomasm.net.

Tomas

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Michael
Letterle
Sent: Thursday, January 08, 2009 10:26 PM
To: removed_email_address@domain.invalid
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 M.
<removed_email_address@domain.invalid<mailto:removed_email_address@domain.invalid>>
wrote:
I fixed this a couple days ago. Don't know whether it has already been
pushed out. Jim?

Tomas
Alex 2. (Guest)
on 2009-01-09 13:22
This topic is locked and can not be replied to.