Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

proc: default value for argument #2061

Closed
mdesantis opened this Issue · 4 comments

2 participants

@mdesantis

In ruby1.9.3 and jruby1.7.0 I can write:

proc{ |a=nil| puts a }

But in rubinius (2.0.0rc1, I didn't tried the head) I get a SyntaxError.

@jc00ke
Owner

I'm unable to repro on HEAD.

@jc00ke jc00ke closed this
@mdesantis

I'm sorry, I didn't realize I was using 1.8.7 language mode :S

@jc00ke
Owner

@ProGNOMmers I have 1.9.3 as my default language mode. You might want to set it too :wink:

@mdesantis

I setted it as default after I realized I was not using it :-)

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.