Unfortunately I think that's next to impossible compatibility-wise. It's very hard to go through old code and find the cases that depends on the copy behavior, and the bugs that would result if a case is missed will likely be hard to track down.
/ Martin Stjernholm, Roxen IS
Previous text:
2002-11-11 18:39: Subject: Re: More about ADTs
On Sun, Nov 10, 2002 at 05:55:05PM +0100, Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
Hmm, I can't think of any that doesn't have parsing problems. All I've concluded so far is that it's damn unfortunate that +=, -= etc have the copy semantics they do. :(
these copy semantics are actually a problem, and it would be nice if we could get rid of them.
marek was showing me an example of such a problem a while ago...
greetings, martin.
/ Brevbäraren