Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add some helpful advice to Str(Mu:U) per RT#113888
  • Loading branch information
skids committed Sep 16, 2015
1 parent b3a7722 commit c9c87a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/Mu.pm
Expand Up @@ -317,7 +317,8 @@ Please refactor this code using the new Iterator / Seq interface.
multi method Str(Mu:U \v:) {
my $name = (defined($*VAR_NAME) ?? $*VAR_NAME !! v.VAR.?name) // '';
$name ~= ' ' if $name ne '';
warn "Use of uninitialized value {$name}of type {self.^name} in string context";
warn "Use of uninitialized value {$name}of type {self.^name} in string context\n" ~
"Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed.";
''
}
multi method Str(Mu:D:) {
Expand Down

0 comments on commit c9c87a9

Please sign in to comment.