maybe I made a mistake with my first mail. Sorry for reposting. Jurgen

Am 20.06.2013 um 13:27 schrieb Jürgen Mück <[email protected]>:

> It does, I'm using this construction all the time without any problems.
>  
> Your example could be extended:
> _______________________________
>  
> package MyPack;
>  
> use Moose;
>  
> # has (Attributes), extends, with ...
>  
> # unload all Moose stuff that's no longer necessary
> __PACKAGE__->meta->make_immutable;
> no Moose;
>  
> use PDL;
> # use more modules
>  
> # Moose specific methods, even when using PDL, are no problem here
> sub BUILD {
>     # ...
> }
>  
> # your methods
> sub xyz {
>     # ...
> }
> 
> 1;
> _______________________________
>  
> This also works with roles, except for meta->make_immutable
>  
> Jurgen
>  
>  
>  
> 
> Von: Kaj Wiik <[email protected]>
> An: perldl list <[email protected]> 
> Gesendet: 11:32 Donnerstag, 20.Juni 2013
> Betreff: Re: [Perldl] PDL and Moose
> 
> Many thanks, David!
> 
> That's it, now it is obvious of course!
> 
> It seems that the following structure works at least for a simple test 
> package:
> ---------------------------------------------------------------------------------------
> packace MyPack;
> use Moose;
> 
> # Define attributes (PDL not generally, ever?,  needed)
> has 'foo' ....
> ....
> 
> no Moose;
> use PDL;
> 
> # Define methods (where PDL is needed)
> sub doit {
> .....
> 
> 1;
> -----------------------------------------------------------------------------------------
> 
> Cheers,
> Kaj
> 
> 
> 
> 
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
> 
> 

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

Reply via email to