Looking forward to see what you come up with. I do mix in a role into both Attribute and ClassHOW. But delving into the core didn't help to find a better approach than the one I finally took. Two subtle aspects are to be kept in mind: support for roles; and knowing the object attribute is belonging to.
> So I have a thought for how to do lazy attributes without Proxy objects. It > is late so I'll try and poke about at it tomorrow but I think we can Mixin a > role to the Attribute using a trait. > > The role will track if the attribute was set to a value at build and if not > call a block it's given when first read from. This gets round the issue of if > we want to set it to Any. > > I *think* this will work. The stuff I've been doing with Trait::Env would > point that way. > Best regards, Vadim Belman