Skip to content
Browse files

Str.comb takes its cue from string rather than numeric value

Fixes GH#2010.

In GH#1552 it was decided that the boolean value of allomorphs is decided by
the numerical value, not by the string value.  So from that, it *could* follow
that the behaviour is correct.  However, since `.comb` clearly works on the
the string part of the allomorph, it seemed like the right thing to do to use
the string semantics of Bool instead in this case.
  • Loading branch information...
lizmat committed Jul 2, 2018
1 parent a9e844a commit f8d6a3f4233afa32eec65c48571ac7a04b6d1e05
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Str.pm6
@@ -352,7 +352,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
method new(\string) {
string.chars, # GH#1020

0 comments on commit f8d6a3f

Please sign in to comment.
You can’t perform that action at this time.