Different behaviors / When setting $@ #1874

Closed
kachick opened this Issue Aug 22, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@kachick
Member

kachick commented Aug 22, 2012

Is below behavior expected in Rubinius?

Example

begin
  raise
rescue
  $@ = []
end

MRI/YARV

ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]

 []

Rubinius

rubinius 2.0.0dev (1.9.3 af9f288 yyyy-mm-dd JI) [i686-pc-linux-gnu]

 NameError: unable to set global
@evanphx

This comment has been minimized.

Show comment
Hide comment
@evanphx

evanphx Aug 22, 2012

Member

This is intended behavior. You're not able to set $@ in Rubinius.

Member

evanphx commented Aug 22, 2012

This is intended behavior. You're not able to set $@ in Rubinius.

@evanphx evanphx closed this Aug 22, 2012

@kachick

This comment has been minimized.

Show comment
Hide comment
@kachick

kachick Aug 22, 2012

Member

Thanks the reply!

I will try other approaches.

Member

kachick commented Aug 22, 2012

Thanks the reply!

I will try other approaches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment