Skip to content

Commit

Permalink
Replace some non-latin1 characters with "\x" equivalents, to prevent …
Browse files Browse the repository at this point in the history
…poor parsing speed of CORE.setting.
  • Loading branch information
pmichaud committed Jun 26, 2011
1 parent b1eb40e commit 41ae351
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -122,7 +122,7 @@ class List does Positional {

multi method DUMP(List:D:) {
self.DUMP-ID() ~ '('
~ ('' if self.infinite) ~
~ ("\x221e " if self.infinite) ~
~ ':items(' ~ DUMP($!items) ~ '), '
~ ':nextiter(' ~ DUMP($!nextiter) ~ ')'
~ ')'
Expand Down
2 changes: 1 addition & 1 deletion src/core/ListIter.pm
Expand Up @@ -63,7 +63,7 @@ my class ListIter {

multi method DUMP(ListIter:D:) {
self.DUMP-ID() ~ '('
~ ('' if self.infinite) ~
~ ("\x221e " if self.infinite) ~
~ ':reified(' ~ DUMP($!reified) ~ '), '
~ ':rest(' ~ DUMP($!rest) ~ '), '
~ ':list(' ~ $!list.DUMP-ID() ~ ')'
Expand Down
2 changes: 1 addition & 1 deletion src/core/Mu.pm
Expand Up @@ -150,7 +150,7 @@ sub DUMP(|$) {
}
else {
pir::is_container__IP($topic)
?? '' ~ $topic.DUMP()
?? "\x25b6" ~ $topic.DUMP()
!! $topic.DUMP()
}
};
Expand Down

0 comments on commit 41ae351

Please sign in to comment.