MagLev/maglev — Issue #114: Proc arity not respected like MRI
Author: jc00ke
Created: 2011-12-07 03:23:06+00:00
State: open

MRI 1.8.7-p352

```
>> p = Proc.new { |s, *args| p s, args }
=> #
>> p.call(:foo)
:foo
[]
```

MagLev (head)

```
>> p = lambda { |s, *args| p s, args }
=> #

>> p.call(:foo)
ArgumentError: too few args
from (irb):10:in `__compileEval'
from (irb):12:in `__compileEval'
from /home/jesse/projects/maglev/src/kernel/bootstrap/Kernel.rb:394:in `eval'
from /home/jesse/projects/maglev/lib/ruby/1.8/irb.rb:159:in `eval_input'
from /home/jesse/projects/maglev/lib/ruby/1.8/irb.rb:162:in `eval_input'
from /home/jesse/projects/maglev/lib/ruby/1.8/irb.rb:280:in `signal_status'
from /home/jesse/projects/maglev/lib/ruby/1.8/irb.rb:281:in `signal_status'
from /home/jesse/projects/maglev/lib/ruby/1.8/irb.rb:156:in `eval_input'
from /home/jesse/projects/maglev/lib/ruby/1.8/irb.rb:155:in `eval_input'
from /home/jesse/projects/maglev/lib/ruby/1.8/irb.rb:71:in `start'
from /home/jesse/projects/maglev/lib/ruby/1.8/irb.rb:70:in `start'
from /home/jesse/projects/maglev/lib/ruby/1.8/irb.rb:73:in `start'
from /home/jesse/projects/maglev/bin/maglev-irb:30
```

This is root cause of #112