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

Attribute isn't Cool in Rakudo #2206

Closed
p6rt opened this issue Oct 4, 2010 · 5 comments
Closed

Attribute isn't Cool in Rakudo #2206

p6rt opened this issue Oct 4, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 4, 2010

Migrated from rt.perl.org#78206 (status was 'rejected')

Searchable as RT78206$

@p6rt
Copy link
Author

p6rt commented Oct 4, 2010

From @masak

<jnthn> rakudo​: class crap { has $.snot = "barf"; has $.eat = "me" };
my $c = crap.new(); for $c.^attributes -> $attr { say
$c."$attr.substr(2)"() }
<p6eval> rakudo 2ee5db​: OUTPUT«Method 'substr' not found for invocant
of class 'Attribute' [...]
<jnthn> tssk
<jnthn> rakudo​: class crap { has $.snot = "barf"; has $.eat = "me" };
my $c = crap.new(); for $c.^attributes -> $attr { say
$c."$attr.name.substr(2)"() }
<p6eval> rakudo 2ee5db​: OUTPUT«barf␤me␤»
<Grimnir_> it does that a lot. saying that Attribute doesn't have that method
<jnthn> ...eww.
<jnthn> Well, yeah
<jnthn> rakudo​: say Attribute ~~ Cool
<p6eval> rakudo 2ee5db​: OUTPUT«0␤»
* masak submits rakudobug
<jnthn> Attributes aren't cool.
<jnthn> masak​: huh.
<masak> I'm assuming that they should be... :)
<jnthn> I'm not at all convinced meta-objects should be in Cool.
<masak> apparently it's bugging people that they're not.
<ash_> Attribute.nqp says​: class Atttribute is Any;
<masak> jnthn​: is it the circularity that's bothering you?
<jnthn> masak​: Yes.
<jnthn> I'd rather we're conservative on this for now.
<jnthn> We can move stuff deeper later maybe.
<masak> fair enuf.
<jnthn> I guess Cool doesn't have any attributes though.
<masak> bug retracted. for now.
<jnthn> So we probably get away with making it Cool
<jnthn> OOC
<masak> if I see this coming up again, I will submit a bug.
<jnthn> rakudo​: say Method ~~ Cool
<p6eval> rakudo 2ee5db​: OUTPUT«1␤»
<masak> \o/
<jnthn> oh, hm
<jnthn> OK, I guess I can argue consistency there.
* masak submits anyway, then

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

From @coke

Still occuring in rakudo​: 33f1cf.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

From @jnthn

On Mon Oct 04 13​:18​:07 2010, masak wrote​:

<jnthn> rakudo​: class crap { has $.snot = "barf"; has $.eat = "me" };
my $c = crap.new(); for $c.^attributes -> $attr { say
$c."$attr.substr(2)"() }
<p6eval> rakudo 2ee5db​: OUTPUT«Method 'substr' not found for invocant
of class 'Attribute' [...]
<jnthn> tssk
<jnthn> rakudo​: class crap { has $.snot = "barf"; has $.eat = "me" };
my $c = crap.new(); for $c.^attributes -> $attr { say
$c."$attr.name.substr(2)"() }
<p6eval> rakudo 2ee5db​: OUTPUT«barf␤me␤»
<Grimnir_> it does that a lot. saying that Attribute doesn't have that
method
<jnthn> ...eww.
<jnthn> Well, yeah
<jnthn> rakudo​: say Attribute ~~ Cool
<p6eval> rakudo 2ee5db​: OUTPUT«0␤»
* masak submits rakudobug
<jnthn> Attributes aren't cool.
<jnthn> masak​: huh.
<masak> I'm assuming that they should be... :)
<jnthn> I'm not at all convinced meta-objects should be in Cool.
<masak> apparently it's bugging people that they're not.
<ash_> Attribute.nqp says​: class Atttribute is Any;
<masak> jnthn​: is it the circularity that's bothering you?
<jnthn> masak​: Yes.
<jnthn> I'd rather we're conservative on this for now.
<jnthn> We can move stuff deeper later maybe.
<masak> fair enuf.
<jnthn> I guess Cool doesn't have any attributes though.
<masak> bug retracted. for now.
<jnthn> So we probably get away with making it Cool
<jnthn> OOC
<masak> if I see this coming up again, I will submit a bug.
<jnthn> rakudo​: say Method ~~ Cool
<p6eval> rakudo 2ee5db​: OUTPUT«1␤»
<masak> \o/
<jnthn> oh, hm
<jnthn> OK, I guess I can argue consistency there.
* masak submits anyway, then

Rejecting because Attribute should not be Cool. Happily​:

say Method ~~ Cool
Bool​::False

Which also deals with that little inconsistency.

/jnthn

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

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

@p6rt p6rt closed this as completed Oct 8, 2011
@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