.dup vs operation on all elements
Neia Neutuladh
neia at ikeran.org
Mon Dec 3 22:04:25 UTC 2018
On Mon, 03 Dec 2018 21:27:52 +0000, faissaloo wrote:
> Then shouldn't the following output false, false, true?
An object reference is a pointer value. The pointer values are copied. The
pointed-at objects are not copied.
Furthermore, the syntax
Object[6] array = new Object();
only allocates one Object. Each item in the array is an object reference
to the same object.
More information about the Digitalmars-d-learn
mailing list