arg = context.evaluate(arg_sym, (Environment)ev);
} catch(Exception e) {
throw new EvalException(String.format("error in evaluating the argument '%s' in selecting a method for function '%s'",
arg_sym.getPrintName(), fname));
}
klass = arg.asString();
}
method = R_find_method(mlist, klass, fname);
if(method == Null.INSTANCE) {
if(!firstTry) {
throw new EvalException("no matching method for function '%s' (argument '%s', with class \"%s\")",