Skip to content

Commit

Permalink
KnowHOW's find_method should not throw to indicate method not found (…
Browse files Browse the repository at this point in the history
…kshannon++).
  • Loading branch information
jnthn committed Jan 8, 2012
1 parent a3bb381 commit a60d71e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/6model/knowhow_bootstrapper.c
Expand Up @@ -163,12 +163,7 @@ static PMC * wrap_c(PARROT_INTERP, void *func) {
/* This is the find_method where things eventually bottom out. */
static PMC * bottom_find_method(PARROT_INTERP, PMC *obj, STRING *name, INTVAL hint) {
PMC *methods = ((KnowHOWREPRInstance *)PMC_data(obj))->body.methods;
PMC *method = VTABLE_get_pmc_keyed_str(interp, methods, name);
if (PMC_IS_NULL(method))
/* XXX Awesomeize. */
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"Could not find method '%Ss'", name);
return method;
return VTABLE_get_pmc_keyed_str(interp, methods, name);
}

/* Bootstraps the KnowHOW. This is were things "bottom out" in the meta-model
Expand Down

0 comments on commit a60d71e

Please sign in to comment.