[perl #131387] `is default` value not applied to attributes by default

2017-09-12 Thread jn...@jnthn.net via RT
On Sat, 27 May 2017 19:35:53 -0700, c...@zoffix.com wrote: > $z is `Nil` without my having to assign anything, while `$!z` is Any. > To make `$!z` Nil I also have to assign Nil to it: > > m: my $z is default(Nil); dd $z;class Foo { has $!z is > default(Nil); method x { dd $!z } }.new.x > rak

[perl #131387] `is default` value not applied to attributes by default

2017-09-12 Thread jn...@jnthn.net via RT
On Sat, 27 May 2017 19:35:53 -0700, c...@zoffix.com wrote: > $z is `Nil` without my having to assign anything, while `$!z` is Any. > To make `$!z` Nil I also have to assign Nil to it: > > m: my $z is default(Nil); dd $z;class Foo { has $!z is > default(Nil); method x { dd $!z } }.new.x > rak

[perl #131387] `is default` value not applied to attributes by default

2017-05-27 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131387] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131387 > $z is `Nil` without my having to assign anything, while `$!z` is Any. To make `$!z` Nil I