Re: Quick translation wanted

2002-12-06 Thread Larry Wall
On Fri, Dec 06, 2002 at 12:27:31PM -0700, Luke Palmer wrote: : > Date: Fri, 06 Dec 2002 11:15:20 -0800 : > From: Larry Wall <[EMAIL PROTECTED]> : > : > As for constructor syntax, I suppose we might make use of the $. notation : > like this: : > : > method new($.name, $.age) { : > return $

Re: Quick translation wanted

2002-12-06 Thread Luke Palmer
> Date: Fri, 06 Dec 2002 11:15:20 -0800 > From: Larry Wall <[EMAIL PROTECTED]> > > As for constructor syntax, I suppose we might make use of the $. notation > like this: > > method new($.name, $.age) { > return $class.bless; > } Come to think of it, new is a class method, not an ob

Re: Quick translation wanted

2002-12-06 Thread Larry Wall
On Fri, Dec 06, 2002 at 08:44:23AM -0700, Luke Palmer wrote: : > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm : > Sender: [EMAIL PROTECTED] : > From: Simon Cozens <[EMAIL PROTECTED]> : > Date: 06 Dec 2002 14:54:43 + : > Organization: Bethnal Green is PEOPLE! : > X-Posted-By: 217.204.17

Re: Quick translation wanted

2002-12-06 Thread Luke Palmer
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Sender: [EMAIL PROTECTED] > From: Simon Cozens <[EMAIL PROTECTED]> > Date: 06 Dec 2002 14:54:43 + > Organization: Bethnal Green is PEOPLE! > X-Posted-By: 217.204.174.162 > > > Is it clear how attributes accessors on objects are going t

Quick translation wanted

2002-12-06 Thread Simon Cozens
Is it clear how attributes accessors on objects are going to work yet? I need to say something along the lines of: sub new { my $class = shift; my ($name, $age) = @_; bless { name => $name, age => $age }, $class; } sub age { my $self=shift; $self->