Skip to content

Commit

Permalink
Fix stringification of protoobjects (RT #61486, #63908).
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Apr 28, 2009
1 parent 2498093 commit f5bbcad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/PARROT_REVISION
@@ -1 +1 @@
38379
38385
2 changes: 2 additions & 0 deletions src/builtins/assign.pir
Expand Up @@ -25,6 +25,8 @@ src/builtins/assign.pir - assignments

# This is a workaround because Parrot's multi-dispatch sometimes gets us
# here by accident when we have a Perl6Array that got re-blessed.
$I0 = isa cont, 'Perl6Scalar'
if $I0 goto not_hash
$I0 = isa cont, 'Perl6Array'
unless $I0 goto not_array
.tailcall cont.'!STORE'(source)
Expand Down
4 changes: 2 additions & 2 deletions t/01-sanity/09-types.t
Expand Up @@ -20,8 +20,8 @@ $int = 14;

# From http://www.rakudo.org/2008/06/mixins-generic-routines-and-en.html
sub typeof(::T $x) { return T }
(typeof(42) eq 'Int') && say 'ok 5';
(typeof('42') eq 'Str') && say 'ok 6';
(typeof(42) eq 'Int()') && say 'ok 5';
(typeof('42') eq 'Str()') && say 'ok 6';

# Stuff that goes crashy-crashy right now
#$num = 0;
Expand Down

0 comments on commit f5bbcad

Please sign in to comment.