Home » Community » Coffee corner » NTL - "deep copy semantics"?
NTL - "deep copy semantics"? [message #4116] |
Fri, 21 July 2006 17:57 |
Werner
Messages: 234 Registered: May 2006 Location: Cologne / Germany
|
Experienced Member |
|
|
When reading about "deep copy" I feel a little bit confused.
You call it "deep copy semantics" to put a value into the target while preserving it in the source. And you set this in contrast to "pick transfer semantics" where a value is put into the target while destroying it in the source.
When I compare this with other C++ reading stuff I understand your "deep copy" as a simple copy process while "pick transfer semantics" means the same as "destructive copy semantics". The latter choice of words reserves the expression "deep copy" (vs "shallow" (or "flat") copy) to tell apart memberwise copy from bitwise copy.
Of course you have every right to define expressions to your liking as long as you make clear what you mean (and you do this!). But what is the reason for this non-customary use of these expressions? Or do I misinterpret something?
Werner
|
|
|
Goto Forum:
Current Time: Fri May 10 00:06:37 CEST 2024
Total time taken to generate the page: 0.02407 seconds
|