Skip to content

Commit

Permalink
Make proto-objects respond more correct to WHICH, which fixes === on …
Browse files Browse the repository at this point in the history
…proto-objects and thus resolves RT#62902.
  • Loading branch information
jnthn committed Feb 25, 2009
1 parent 7f8ba6f commit d912db6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/classes/Protoobject.pir
Expand Up @@ -48,6 +48,20 @@ Returns the protoobject's autovivification closure.
.return (whence)
.end
=item WHICH()
Returns a comparable identifier for the proto-object.
=cut
.sub 'WHICH' :method
$P0 = self.'HOW'()
$I0 = get_addr $P0
.return ($I0)
.end
=back
=head2 Functions
Expand Down

0 comments on commit d912db6

Please sign in to comment.