SPVM::Cloneable - Interface Type to Clone Object
class Point { interface Cloneable; method clone : Point () { my $new_point = Point->new($self->x, $self->y); return $new_point; } }
Cloneable is a callback interface to clone a object.
Interface methods.
required method clone : object ();
The implementation must return the cloned object.
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.