It is probably a good reason but why is this not implemented in ruby.

irb(main):005:0> def aProc(a=5,b=6,c=7)
irb(main):006:1> print a,b,c
irb(main):007:1> end
irb(main):008:0> aProc
567=> nil

irb(main):009:0> aProc(1,,3)
SyntaxError: compile error
(irb):9: syntax error, unexpected ','
aProc(1,,3)
         ^
        from (irb):9
        from :0

Why oh why I can not omit parameter in the middle of statement? I am
forced to know its default value if I want to omit a parameter in the
middle or at the begining of the statement.


by
TheR
-- 
Posted via http://www.ruby-forum.com/.