# New Ticket Created by "Mark J. Reed" # Please include the string: [perl #76614] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76614 >
rakudo: class Foo { has $.bar = "baz"; }; say Foo.new.bar <p6eval> rakudo 278366: OUTPUT <baz> > rakudo: class Foo { has $.bar = "baz"; submethod BUILD{}}; say Foo.new.bar <p6eval> rakudo 278366: OUTPUT <Any()> Per S12: Whether you write your own BUILD or not, at the end of the BUILD, any default attribute values are implicitly copied into any attributes that haven't otherwise been initialized. -- Mark J. Reed <markjr...@gmail.com>