On Mon, Sep 12, 2016 at 11:40 PM, Brian S. Julin <
perl6-bugs-follo...@perl.org> wrote:

> $ perl6 -e 'class A { my $.bar = 42; }; class D { constant bar =
> A.bar.say; }; A.bar.say'
> (Any)
> (Any)
>

The first one is expected, as the bodies of class definitions run at
compile time but initializers at run time. I don't know why the second one
happens, though.

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to