and a few more thoughts: I wrote: > S12 says (in the context of classes): > > > my method think (Brain $self: $thought) > > (Such methods are completely invisible to ordinary method calls, and are > in fact called with a different syntax that uses ! in place of the . > character. See below.)
for private subs S12 also says Generally you'd just use a lexically scoped sub, though. my sub foo ... [Conjectural: To put a private sub into the class, say our sub !foo ... ] Which lead me to the thought that 'my method foo' is a bad idea because the lexical scoping of the 'my' is orthogonal to the scope of the class. class A { my method foo { } } class A is also { method bar { # no way to access self!foo here } } So is our method !foo {} allowed in classes? and is it the recommended way to declare private methods? -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/