I think a cleaner way than a source filter would be a special PDL that flags
the PP engine to duplicate an argument. But even that is fraught with peril --
edge cases abound.
What's wrong with temporary variables?
($last = $a->mv(0,-1)->rotate(3))->where($last>3)
should work fine since the assignment has to be evaluated before the method
call can be considered.
On Jan 13, 2012, at 4:32 PM, Chris Marshall wrote:
> A source filter would be the simplest. Maybe another
> clever way could be found, perhaps have the self() set
> from the pdl output of the previous PDL method call or
> routine.
>
> --Chris
>
> On Fri, Jan 13, 2012 at 2:57 PM, Joel Berger <[email protected]> wrote:
>>> $a->mv(0,-1)->rotate(3)->where(self>3)
>>
>> How on earth would you do that? Perhaps with a source filter, but
>> unless you were going to make singleton objects I can't think of how
>> one would implement that.
>>
>> Joel
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl