static void ArityError(Vm vm, int expectedArity, int actualArity, bool inApply)
{
var message = "Function of {0} arguments called with {1} arguments.";
if (inApply)
{
message = "The first argument of 'apply', a function of {0} arguments, was called with {1} arguments.";
}
vm.RaiseShovelError (String.Format (
message,
expectedArity, actualArity));
}