develooper Front page | perl.perl6.language | Postings from April 2002

Re: Unary dot

Thread Previous | Thread Next
From:
Luke Palmer
Date:
April 15, 2002 00:41
Subject:
Re: Unary dot
Message ID:
Pine.LNX.4.33.0204150139090.22938-100000@babylonia.flatirons.org
On Mon, 15 Apr 2002, Damian Conway wrote:

> More interestingly, it may also be that, by default, the C<operator:{}> (i.e.
> hash-look-up) method of a class invokes the accessor of the same name as the
> key, so that:

I'm a tad bit confused on the grounds of classes. Are we allowed to:
  %fred = new Flintstone;

Or are class instances limited only to scalars? The former seems a bit 
counterintuitive...


Luke


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About