Re: [Pdl-devel] Subclassing PDL made easier with PDLx::DetachedObject

2016-10-26 Thread Chris Marshall
Another possible wart in the PDL operator overloading is that the overloaded functions are done as &PDL::operation and not 'operation' strings which could be resolved and a method or overridden in the subclass. I don't know if that is relevant to the OO implementation using "has a" in place of "i

Re: [Pdl-devel] Subclassing PDL made easier with PDLx::DetachedObject

2016-10-26 Thread Diab Jerius
Looks interesting, but not well maintained; neither of the two issues reported had a reply. On Tue, Oct 25, 2016 at 1:55 PM, Chris Marshall wrote: > You might take a look at > http://search.cpan.org/~dconway/Class-Multimethods-1.70/ which does a > perl-level implementation of multimethods. Doe

Re: [Pdl-devel] Subclassing PDL made easier with PDLx::DetachedObject

2016-10-26 Thread Diab Jerius
Overloading is definitely an issue. but the assumptions made by initialize() shouldn't be overlooked. I'll expand the text in PDL::Objects to discuss them. On Tue, Oct 25, 2016 at 10:30 AM, Chris Marshall wrote: > On re-reading, I think the problem we're really discussing here is > the operator o