On 9/6/2010 12:17 AM, P Kishor wrote:
>
>> @PKishor: does PDL::Lite do what you need?
>
>
> Chris, yes, possibly. I commented out all PDL modules, added
> PDL::Lite, and then converted stuff such as `zeroes $x, $y` to
> PDL->zeroes($x, $y). So far so good. Things will break, but I guess I
> can try the PDL->method method. By the way, `PDL->zeroes $x, $y`
> doesn't work. I have to use parens as in `PDL->zeroes($x, $y)`.

OK.  You're better off with the unambiguous syntax.

> We'll see. I will have to do more testing, step by step. Many thanks
> for your help.

The namespace::clean module may be of help.  Devel::REPL
uses it to clean up junk from its compile phase so that
there is not a bunch of cruft for users to work around.

I don't really know how it works but if you've installed
the Devel::REPL for the pdl2 shell, you already have that
installed as well.  You could experiment with that.
>
> I have also written to the Dancer folks and see if they can suggest
> solutions as well. Hopefully, I won't need anything drastic.
>
> I do hope that one day PDL might evolve into a completely object
> oriented program, with all the methods accessible only via the piddle
> object.

Even "completely object oriented" approaches can have
class methods.  With PDL::Lite, you should have this
except for the already mentioned irreducible minimum
of exports from PDL::Core.  You'll need to check the
docs and/or source to see what those are.

--Chris

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to