Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rakudo thinks that a proto-object in an attribute isn't ===-equal to its class #668

Closed
p6rt opened this issue Jan 29, 2009 · 4 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Jan 29, 2009

Migrated from rt.perl.org#62902 (status was 'resolved')

Searchable as RT62902$

@p6rt
Copy link
Author

p6rt commented Jan 29, 2009

From @masak

A protoobject in a normal lexical variable​:

<masak> rakudo​: class A {}; my A $a; say $a === A # works
<p6eval> rakudo 36143​: OUTPUT«1␤»

A protoobject in an object attribute​:

<masak> rakudo​: class A {}; class D { has A $!a; method foo { say $!a
=== A } }; D.new.foo # fails
<p6eval> rakudo 36143​: OUTPUT«0␤»

@p6rt
Copy link
Author

p6rt commented Feb 25, 2009

From @jnthn

On Thu Jan 29 05​:13​:48 2009, masak wrote​:

A protoobject in a normal lexical variable​:

<masak> rakudo​: class A {}; my A $a; say $a === A # works
<p6eval> rakudo 36143​: OUTPUT«1␤»

A protoobject in an object attribute​:

<masak> rakudo​: class A {}; class D { has A $!a; method foo { say $!a
=== A } }; D.new.foo # fails
<p6eval> rakudo 36143​: OUTPUT«0␤»

Fixed in git d912db6 and added a test to S12-attributes/instance.t.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Feb 25, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Feb 25, 2009

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Feb 25, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant