May 26, 2018

XS module to swap the contents and types of referenced variables

Paraphrased from the DataSwap’s documentation …

DataSwap 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//