On Thu, Mar 19, 2015 at 10:33 PM, Tom Browder <tom.brow...@gmail.com> wrote:

> Why do you say that is not a method?  The first line says


Sorry, somehow I managed to misread that.

So you want what I have already said twice: the accessor `self.elem`. If
you want to access the variable directly for some reason, you use the form
`$.elem`. (By the way, that shadowing is generally bad form, and not just
in Perl 6. It makes code confusing to read)

-- 
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