Ah, ok. Then it's not the assignment that does the copying but rather the merge operation before it. (Besides, the copying in that case is only one level deep while copy_value is recursive.)
Also, those operations have nothing to do with indexing, so it's not sane if operators for them involve a pair of square brackets. They would rather be variants of "+=", "|=" etc, e.g. by adding an extra character somewhere.
/ Martin Stjernholm, Roxen IS
Previous text:
2002-11-12 19:52: Subject: Re: More about ADTs
On Tue, Nov 12, 2002 at 07:45:08PM +0100, Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
What do you mean? I'm not aware of any situation where an assignment implies a copy_value.
i was refering to the copy semantics you talked about earlier regarding += and -=
didn't you mean the same as copy_value there?
greetings, martin.
/ Brevbäraren