Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Str.Str, with a caveat.
  • Loading branch information
colomon committed Nov 8, 2009
1 parent fe6dd27 commit 37d480a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/setting/Str.pm
@@ -1,4 +1,6 @@
class Str is also {
method Str() { self; } # does this do the right thing for classes derived from Str?

multi method encode($encoding = 'UTF-8', $nf = '') {
my @bytes = Q:PIR {
.local int bin_coding, i, max, byte
Expand Down

0 comments on commit 37d480a

Please sign in to comment.