develooper Front page | perl.perl6.language | Postings from May 2005

Re: trait and properties thru getter/setters

Thread Previous | Thread Next
From:
=?iso-8859-1?Q?St=E9phane?= Payrard
Date:
May 13, 2005 12:40
Subject:
Re: trait and properties thru getter/setters
Message ID:
20050513194050.GC11769@stefp.dyndns.org
On Fri, May 13, 2005 at 12:31:09PM -0700, Larry Wall wrote:
> On Fri, May 13, 2005 at 12:26:22PM -0700, Brent 'Dax' Royal-Gordon wrote:
> : Well, the value's pretty easy--just pass in a variable:
> : 
> :     my $b = $a is foo($bar);
> 
> As we currently have it, that is not legal syntax.  "is" may only
> be applied to declarations.  You must use "does" or "but" to mixin
> things at run-time (where this includes the compiler's run-time
> bits).

And what about the getter part of my question? :)

> 
> Larry
> 

-- 
  cognominal stef

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