On Thu Aug 28 09:49:35 2008, alexanderk wrote:
Show quoted text> Is there any behaviour planned equivalent in behaviour to
> Class::Accessor::Chained concerning a return value of $self when calling
> mutators?
No, not really. It would be trivial to implement, but I'm not entirely
convinced it's worth cluttering the interface for this feature. Right
now, you can export getters, setters, testers and mutators. Offering two
types of mutators seems to be asking for confusion.
Supposing I was convinced, I'd just take the XS code of the mutator and
return self variable in one branch of the if(){}else{}.
How about this: If you can suggest an interface (which can be just a
name) for this feature that makes clear what it does and how it differs
from the normal mutators, then I'll add the feature.
Best regards,
Steffen