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

Type objects of two anonymous classes compare as True undef infix:<===> in Rakudo #2884

Closed
p6rt opened this issue Sep 3, 2012 · 4 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 3, 2012

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

Searchable as RT114716$

@p6rt
Copy link
Author

p6rt commented Sep 3, 2012

From @masak

<masak> rn​: say (class {}).^name
<p6eval> niecza v21-1-ga8aa70b​: OUTPUT«ANON␤»
<p6eval> ..rakudo 962b9b​: OUTPUT«<anon>␤»
<masak> rn​: say (class {}) === (class {})
<p6eval> niecza v21-1-ga8aa70b​: OUTPUT«False␤»
<p6eval> ..rakudo 962b9b​: OUTPUT«True␤»
<masak> o.O
<masak> Rakudo! really, "True"?
<masak> r​: say (class { has $.x }) === (class {})
<p6eval> rakudo 962b9b​: OUTPUT«True␤»
<masak> r​: say (class { method foo {} }) === (class {})
<p6eval> rakudo 962b9b​: OUTPUT«True␤»
* masak submits rakudobug

S03 doesn't go into detail about what "value identity" means. But the
consensus intuition seems to be that things of different types should
not compare as True under infix​:<===>, like they do here.

@p6rt
Copy link
Author

p6rt commented Oct 11, 2015

From @niner

Fixed in rakudo commit 86731df15fac5e079ba158bd0b22b93e3cb5ac2c
Test in roast​: Raku/roast@84115c62db

@p6rt
Copy link
Author

p6rt commented Oct 11, 2015

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

@p6rt
Copy link
Author

p6rt commented Oct 11, 2015

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

@p6rt p6rt closed this as completed Oct 11, 2015
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant