Re: A question about attribute functions

2004-09-01 Thread Larry Wall
On Wed, Sep 01, 2004 at 07:08:57PM +0200, Juerd wrote: : Larry Wall skribis 2004-09-01 8:02 (-0700): : > : $x.transform.(); : > That might not work either. This will, though: : > ($x.transform)(); : : This is surprising. Can you please explain why .() won't work? I have : methods return su

Re: A question about attribute functions

2004-09-01 Thread Juerd
Larry Wall skribis 2004-09-01 8:02 (-0700): > : $x.transform.(); > That might not work either. This will, though: > ($x.transform)(); This is surprising. Can you please explain why .() won't work? I have methods return subs quite often, and like that I can just attach ->() to it to make

Re: A question about attribute functions

2004-09-01 Thread Larry Wall
On Wed, Sep 01, 2004 at 08:02:33AM -0700, Larry Wall wrote: : That might not work either. This will, though: : : ($x.transform)(); So will $x.transform()(); for that matter... Larry

Re: A question about attribute functions

2004-09-01 Thread Larry Wall
On Wed, Sep 01, 2004 at 10:41:37AM -0400, Aaron Sherman wrote: : How do you declare attribute functions? Specifically, I was thinking : about map and what kind of object it would return, and I stumbled on a : confusing point: : : class mapper does iterator { : has &.transform;

A question about attribute functions

2004-09-01 Thread Aaron Sherman
How do you declare attribute functions? Specifically, I was thinking about map and what kind of object it would return, and I stumbled on a confusing point: class mapper does iterator { has &.transform; ... } Ok, that's fine, but what kind of access