Skip to content

Loading…

Different behaviors / When setting $@ #1874

Closed
kachick opened this Issue · 2 comments

2 participants

@kachick
Rubinius member

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
Rubinius member

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

@evanphx evanphx closed this
@kachick
Rubinius member

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
Something went wrong with that request. Please try again.