Shallow copy: Difference between revisions
Appearance
Content deleted Content added
m Added intro as this appears to be the norm! |
m Bot: Fixing double redirect to Object copying#Shallow copy |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
#REDIRECT [[Object copying#Shallow copy]] |
|||
In [[computing]], the result of shallow copying one object to another [[variable]] is two variables pointing to the same physical object in memory. |
|||
Thus changing the object pointed to by one of the variables will also cause the contents of the other variable to change (since the same object in memory is being altered). |
|||
Shallow copies are common when [[reference counting]] objects. |
|||
See also [[deep copy]]. |
Latest revision as of 18:45, 31 May 2015
Redirect to: