Sfairadora

  • Reference Guide

copy_object

copy_object(lval_tgt, lval_src)
Copies the object referred by the l-value lval_src into the object referred by the l-value lval_tgt. This function is especially useful in a situation, when the both source and target are unions and the source object contains analytic data items. The copy_object function then copies the content of the source object with preserving the analytic data items. A similar operation can be performed with the assignment operator, in that case, however, only the instant state of the object is copied. Therefore, analytic data items are converted to their respective free types.