Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: subclassing Math::Vector::Real with MooseX::NonMoose

by docdurdee (Scribe)
on Sep 12, 2013 at 15:52 UTC ( [id://1053751]=note: print w/replies, xml ) Need Help??


in reply to Re: subclassing Math::Vector::Real with MooseX::NonMoose
in thread subclassing Math::Vector::Real with MooseX::NonMoose

quickly adding this and MX::Nonmoose::InsideOut to MyMVR:
sub FOREIGNBUILDARGS { return @{$_[2]}}
@_ is (class, key (vec), and value (arrayref)) from the adjusted script:
use MyMVR; my $a = MyMVR->new(vec=>[0,0,0]); my $b = MyMVR->new(vec=>[1,1,1]); print $_ ."\n" foreach (@{$a - $b}); print $a->dist($b) . "\n";
which works. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1053751]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found