Re: Lexical scope of parametric declaration blocks

2004-12-07 Thread Luke Palmer
Ashley Winters writes: > In S12, I see examples like: > > role Pet[Type $petfood = TableScraps] { > method feed (::($petfood) $food) {...} > } > > I assume that means lexicals declared as part of a parametric > specialization declaration block thingy are only visible within that > scope,

Lexical scope of parametric declaration blocks

2004-12-07 Thread Ashley Winters
In S12, I see examples like: role Pet[Type $petfood = TableScraps] { method feed (::($petfood) $food) {...} } I assume that means lexicals declared as part of a parametric specialization declaration block thingy are only visible within that scope, like a formal subroutine parameter list?