Return-value for methods; seed funding

Georg Fuellen fuellen@dali.Mathematik.Uni-Bielefeld.DE
Tue, 29 Jul 1997 22:15:15 +0000 (GMT)


> Consider
> -- -----------
> 
> $seq->slice(seq($beg,$end))       returns modified object
> $seq->slice($beg,$end)            same as current get_seq() -- returns sequence
> $seq->slice(inplace($beg,$end))   modifies the object itself -- this saves time+space
> 
> Same for revcom:
> 
> $seq->revcom(seq($beg,$end))      returns modified object
> $seq->revcom($beg,$end)           same as current revcom() -- returns sequence
> $seq->revcom(inplace($beg,$end))  modifies the object itself -- this saves time+space
> 
> The implementation should be straightforward doing a pattern match
> on the argument.

The last sentence should read 
The implementation should be straightforward by setting an appropriate flag --
the PDL module uses inplace() in such a way, as far as I remember.

Hope it's ok now -- it's time to go to bed ;-)
georg