DeepCopy (NamedArraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Deep Copy NamedArraylist<section end=dpl_desc/></b></span> [[Category:NamedArraylist methods|DeepCopy functi...")
 
m (add note re exception to deep copyability)
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Deep Copy NamedArraylist<section end=dpl_desc/></b></span>
{{Template:NamedArraylist:DeepCopy subtitle}}
[[Category:NamedArraylist methods|DeepCopy function]]
<!--DPL?? Category:NamedArraylist methods|DeepCopy function: Deep Copy NamedArraylist-->
<p>
DeepCopy is a member of the [[NamedArraylist class]].
</p>


This function
This function
makes a &ldquo;deep copy&rdquo; of the NamedArraylist method object, ''%namrayl''.
makes a "deep copy" of the <var>NamedArraylist</var> method object, <var class="term">nal</var>.
If ''%namrayl'' contains objects, they '''are''' copied.
If <var class="term">nal</var> contains objects, they '''are''' copied.
If ''%namrayl'' is Null, a Null is returned.
If <var class="term">nal</var> is <var>Null</var>, a <var>Null</var> is returned.


For more information about copyability, see [[Copying objects]].
==Syntax==
==Syntax==
  %dcop = %namrayl:DeepCopy
{{Template:NamedArraylist:DeepCopy syntax}}
===Syntax Terms===
<dl>
<dt><i>%dcop</i>
<dd>An NamedArraylist to contain the deep copy of ''%namrayl''.
<dt><i>%namrayl</i>
<dd>An NamedArraylist object.


</dl>
===Syntax terms===
<table>
<tr><th>%outNal</th>
<td>A <var>NamedArraylist</var> to contain the deep copy of <var class="term">nal</var>. </td></tr>
 
<tr><th>nal</th>
<td>A <var>NamedArraylist</var> object, which may be <var>Null</var>.</td></tr>
</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==
<ul>
<li>For more information about copyability, see [[Copying objects]].
</ul>
 
{{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