Skip to content

Commit

Permalink
Hacky fix for R#2640
Browse files Browse the repository at this point in the history
After spending most of the day yak shaving for this, decided to just
hack a solution for the release to get the pressure off.  I have a patch
that will fix the re-composing of classes with meta methods in them, but
that also unfortunately disables this hack.

As was observed, a class with a ^parameterize in them will smartmatch
correctly after having done a .^compose on them.  This commit will do that
at the end of compiling the setting for the classes in the setting that
have a ^parameterize method.  This will **not** fix any classes out there
that also have a ^parameterize method.
  • Loading branch information
lizmat committed Jan 25, 2019
1 parent 9517c37 commit 71a19c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/core_epilogue.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ BEGIN {
}
}

# temporary fix for R#2640
BEGIN .^compose for Array,array,Bag,BagHash,Hash,Mix,MixHash,Set,SetHash;

{YOU_ARE_HERE}

# vim: ft=perl6 expandtab sw=4

0 comments on commit 71a19c6

Please sign in to comment.