Skip to content

Commit 5d47501

Browse files
committed
.WHO support; make sure we don't ever hand back a C NULL.
1 parent dd93e72 commit 5d47501

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/NQP/Actions.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,11 +1040,13 @@ method dotty($/) {
10401040
}
10411041
elsif $<longname> eq 'HOW' {
10421042
$past.pirop('get_how PP');
1043-
$past.pasttype('pirop');
10441043
}
10451044
elsif $<longname> eq 'WHAT' {
10461045
$past.pirop('get_what PP');
10471046
}
1047+
elsif $<longname> eq 'WHO' {
1048+
$past.pirop('get_who PP');
1049+
}
10481050
else {
10491051
$past.name(~$<longname>);
10501052
$past.pasttype('callmethod');

src/metamodel/rakudoobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ static INTVAL default_type_check (PARROT_INTERP, PMC *obj, PMC *checkee) {
119119
PMC * create_stable(PARROT_INTERP, PMC *REPR, PMC *HOW) {
120120
PMC *st_pmc = pmc_new_init(interp, stable_id, HOW);
121121
STABLE_STRUCT(st_pmc)->REPR = REPR;
122+
STABLE_STRUCT(st_pmc)->WHO = PMCNULL;
122123
STABLE_STRUCT(st_pmc)->find_method = default_find_method;
123124
STABLE_STRUCT(st_pmc)->type_check = default_type_check;
124125
return st_pmc;

0 commit comments

Comments
 (0)