Re: [Pdl-devel] RFC: Coordinated masking of piddles.

2016-10-24 Thread Diab Jerius
I've developed this into the modules PDLx::Mask and PDLx::MaskedData. For now, they're just up at github & bitbucket: https://github.com/djerius/PDLx-Mask https://bitbucket.org/djerius/pdlx-mask See the end of the .pm files for complete docs. There's a dependency on https://github.com/djerius

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

2016-10-24 Thread Chris Marshall
Thanks for the additional clarification for context---what a mess! >From your example, it seems that the current PDL approach for OO via "has-a" doesn't work but my question is what method would work? Is there an example of an OO language or framework that can be shown to work for this type of pr

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

2016-10-24 Thread Diab Jerius
On Mon, Oct 24, 2016 at 12:43 PM, Diab Jerius wrote: > initialize() currently must assume that object construction can be > done without any arguments to the constructor. That's inappropriate > in some instances (as described above). And once more, to clarify... initialize() is not passed any c

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

2016-10-24 Thread Diab Jerius
On Mon, Oct 24, 2016 at 12:43 PM, Diab Jerius wrote: > initialize() currently must assume that object construction can be > done without any arguments to the constructor. I shouldn't have used the word "currently", as that implies there's a way of changing its behavior, and I don't have any good

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

2016-10-24 Thread Diab Jerius
On Sat, Oct 22, 2016 at 2:57 PM, Chris Marshall wrote: > Hi Diab- > > I haven't done much with subclassing from PDL but > I have noted some warts as in PDL::Complex. > > For the PDL::NextGen work I would like to have an > approach that is interoperable with Moo[se] and > possibly other OO framewor