DeepCopy (NamedArraylist function): Difference between revisions
Jump to navigation
Jump to search
m (→See also) |
m (add note re exception to deep copyability) |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
If <var class="term">nal</var> contains objects, they '''are''' copied. | If <var class="term">nal</var> contains objects, they '''are''' copied. | ||
If <var class="term">nal</var> is <var>Null</var>, a <var>Null</var> is returned. | If <var class="term">nal</var> is <var>Null</var>, a <var>Null</var> is returned. | ||
==Syntax== | ==Syntax== | ||
Line 12: | Line 10: | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table | <table> | ||
<tr><th>%outNal</th> | <tr><th>%outNal</th> | ||
<td>A <var>NamedArraylist</var> to contain the deep copy of <var class="term">nal</var>. </td></tr> | <td>A <var>NamedArraylist</var> to contain the deep copy of <var class="term">nal</var>. </td></tr> | ||
Line 19: | Line 17: | ||
<td>A <var>NamedArraylist</var> object, which may be <var>Null</var>.</td></tr> | <td>A <var>NamedArraylist</var> object, which may be <var>Null</var>.</td></tr> | ||
</table> | </table> | ||
==Usage notes== | |||
<ul> | |||
<li>Although <var>NamedArraylist</var> objects in general are deep copyable, a particular <var>NamedArraylist</var> might contain references to non-deep-copyable objects, which disallows deep copy of that specific <var>NamedArraylist</var>. </li> | |||
</ul> | |||
==See also== | ==See also== | ||
<ul> | <ul> | ||
<li>For more information about copyability, see [[Copying objects | <li>For more information about copyability, see [[Copying objects]]. | ||
</ul> | </ul> | ||
{{Template:NamedArraylist:DeepCopy footer}} | {{Template:NamedArraylist:DeepCopy footer}} |
Latest revision as of 21:55, 23 January 2017
Deep Copy NamedArraylist (NamedArraylist class)
This function
makes a "deep copy" of the NamedArraylist method object, nal.
If nal contains objects, they are copied.
If nal is Null, a Null is returned.
Syntax
%outNal = nal:DeepCopy
Syntax terms
%outNal | A NamedArraylist to contain the deep copy of nal. |
---|---|
nal | A NamedArraylist object, which may be Null. |
Usage notes
- Although NamedArraylist objects in general are deep copyable, a particular NamedArraylist might contain references to non-deep-copyable objects, which disallows deep copy of that specific NamedArraylist.
See also
- For more information about copyability, see Copying objects.