On Fri, 2002-05-10 at 21:42, Damian Conway wrote:

> > Wouldn't those be the same?
> 
> Not quite. C<$.bar> is a direct access to the attribute. C<.bar> is a call
> to the accessor. There might well be performance issues.

I would expect that there won't be, but perhaps I'm optimistically
over-hyping Perl6's inlining before it exists. Surely, we would always
prefer that every method except accessors use the accessors, though.
After all, later modification of the class might move the member
variables to a super-class.


Reply via email to