From: Robert Klemme Date: 2005-01-12T18:21:16+09:00 Subject: Re: Variable Arguments "Florian Gross" schrieb im Newsbeitrag news:34ihugF4b43vqU1@individual.net... > Mystifier wrote: > > > How can you say caller know about the number of arguments. It might be > > possible that it call the function with all what he has and caller > > responds with "I am being called with too few or too many arguments". > > This can be shown as the error you have indicated. > > But you can check the method's arity before calling it. If it's a > positive number then it expects exactly that many arguments. If it's a > negative number it expects at least ~arity arguments. Is this not what > you asked? Florian, I'm as confused as you. After all, ArgumentError is a runtime error - an exception. So whatever he does about method invocation etc. the VM has to be able to deal with exceptions in the same way the interpreter does. You just invoke the method with the arguments you have and see what happens. That's it IMHO. Cheers robert