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 doesn't prohibit a class from having two public attributes with the same name in the same class #2616
Comments
From @masak<masak> nom: class A { has @.a = 2,3; has $.a = 1 }; say "alive", A.new.a I expect Niecza's behavior here. <moritz> masak: did you see jnthn++'s explanation in the backlog? Here, for reference, is jnthn's explanation: <jnthn> Rakudo isn't silently overriding it at all Yup, agree on that specific point. <moritz> but if the user wants to supply his own accessor, shouldn't Back to the present. <masak> now I see jnthn's explanation. it may make sense to you -- I Oh, ok! Back in time again! <geekosaur> so really both are partly wrong. seeing that one has been And again back in the present. Well, it used to be the present, when * masak sees it |
From @jnthnOn Fri Jan 20 11:39:49 2012, masak wrote:
Now:
And also:
Tagging testneeded. /jnthn |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzTested in S12-attributes/instance.t. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#108670 (status was 'resolved')
Searchable as RT108670$
The text was updated successfully, but these errors were encountered: