Skip to content

Commit

Permalink
Fix a regression due to subtleties between proto-object Role and an a…
Browse files Browse the repository at this point in the history
…ctual Role and how they respond to HOW. The :U/:D distinction, if it flies, would probably make this cleaner.
  • Loading branch information
jnthn committed Jul 24, 2009
1 parent c0cd8aa commit 3bba1f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/classes/Role.pir
Expand Up @@ -223,8 +223,14 @@ just here so postcircumfix:[ ] doesn't explode).
=cut

.sub 'HOW' :method
$I0 = isa self, 'P6protoobject'
if $I0 goto proto
$P0 = self.'!select'()
.tailcall $P0.'HOW'()
proto:
$P0 = typeof self
$P0 = getprop 'metaclass', $P0
.return ($P0)
.end


Expand Down

0 comments on commit 3bba1f0

Please sign in to comment.