proc: default value for argument #2061

mdesantis opened this Issue Nov 28, 2012 · 4 comments


None yet
2 participants

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 commented Nov 28, 2012

I'm unable to repro on HEAD.

jc00ke closed this Nov 28, 2012

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


jc00ke commented Nov 28, 2012

@prognommers I have 1.9.3 as my default language mode. You might want to set it too 😉

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