1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/devel/p5-Data-Swap/pkg-descr
Erwin Lansing d3d48e1a43 Paraphrased from the Data:Swap's documentation ...
Data::Swap (XS) module allows to swap the contents of two referenced
variables, even if they have different types.  The main application is
to change the base type of an object after it has been created, for
example for dynamic loading of data structures:

      swap $self, bless $replacement, $newclass;

WWW: http://search.cpan.org/dist/Data-Swap/

PR:		ports/90229
Submitted by:	Parv <parv@pair.org>
2005-12-11 12:40:51 +00:00

11 lines
404 B
Plaintext

Paraphrased from the Data:Swap's documentation ...
Data::Swap (XS) module allows to swap the contents of two referenced
variables, even if they have different types. The main application is
to change the base type of an object after it has been created, for
example for dynamic loading of data structures:
swap $self, bless $replacement, $newclass;
WWW: http://search.cpan.org/dist/Data-Swap/