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
attributive parameters alter object during any bind, not just invoke #4332
Comments
From @skids# Attributive parameters can load themselves into objects during #...like multidispatch tests |
From @skidsPlease also see the conversation at: http://irclog.perlgeek.de/perl6/2015-08-02#i_10992867 ...when deciding how to fix this one. |
From @skidsMore investigation, done while trying to get the desired behavior mentioned It appears that just mentioning an attribute in a BUILD submethod is enough (12:58:54 PM) skids: m: class A { has $.a = 42.say; submethod BUILD { } }.new.a.perl.say; ...except for native attributes: (01:15:36 PM) skids: m: class A { has int $.a = { 42.say; 43 }(); submethod BUILD () { } }.new().a.perl.say; ...which may or may not be related to the following, which results from some (01:19:22 PM) skids: m: class A { has int $.a = { 42.say; 43 }(); }.new(:a(1)).a.perl.say; ...which makes it a bit difficult to set a native attribute to its "undefined" value if |
From @skidsJust to add, a partial fix is in PR#539 though there is a good chance it |
Migrated from rt.perl.org#125437 (status was 'new')
Searchable as RT125437$
The text was updated successfully, but these errors were encountered: