Skip to content

Commit

Permalink
Set scalar property on multis so they don't flatten out to their cand…
Browse files Browse the repository at this point in the history
…idates.
  • Loading branch information
jnthn committed Feb 27, 2010
1 parent 7680ab4 commit 44950e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pmc/perl6multisub.pmc
Expand Up @@ -865,6 +865,9 @@ Allocates the PMC's underlying storage.
/* Need custom mark and destroy. */
PObj_custom_mark_SET(SELF);
PObj_custom_destroy_SET(SELF);

/* Set scalar property to avoid. */
VTABLE_setprop(interp, SELF, CONST_STRING(interp, "scalar"), SELF);
}

/*
Expand Down

0 comments on commit 44950e8

Please sign in to comment.