Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Should have a stash for KnowHOWs too.
  • Loading branch information
jnthn committed Apr 17, 2011
1 parent 1d1ea2f commit 06f82a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/metamodel/knowhow_bootstrapper.c
Expand Up @@ -38,6 +38,9 @@ static void new_type(PARROT_INTERP, PMC *nci) {
VTABLE_get_string_keyed_str(interp, capture, name_str) :
empty_str;
((KnowHOWREPRInstance *)PMC_data(HOW))->name = name;

/* Set .WHO to an empty hash. */
STABLE(type_object)->WHO = pmc_new(interp, enum_class_Hash);

/* Put it into capture to act as return value. */
Parrot_pcc_build_call_from_c_args(interp, capture, "P", type_object);
Expand Down

0 comments on commit 06f82a8

Please sign in to comment.