On Wed, 2 Sep 2015 09:46:44 +0200, Gerhard Wolf <
lea...@gmx.de>
wrote:
>Hi,
>
>if have a unexpected result with the C++Builders TByteDynArray class.
>Pruefung[STOP] = AB;
>seems to pass ABs value by reference because
>[1]-value of Pruefung[STOP] switches to 1 after
>AB[1] = 1;
What is the actual type that TBytDynArray is an alias for? If
https://gist.github.com/daeltar/90951 is correct, it is a class with
one int member and one int* member. Since the = operator is not
overloaded, assigning one such object to another should result in the
corresponding members of both objects having the same value.
If two pointers point to the same memory, changes made by
dereferencing one pointer will show up when dereferencing the other.
--
Remove del for email