www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: opStar

Michel Fortin Wrote:

 On 2007-11-10 10:34:38 -0500, "Janice Caron" <caron800 googlemail.com> said:
 On 11/10/07, Michel Fortin <michel.fortin michelf.com> wrote:
 something as simple as `*a = b` is going to be pretty complicated for
 any non-object value

Maybe Walter will add opStarAssign()?

And then opStarAddAssign, opStarDivAssign, opStarShlAssign, opStarCatAssign... no, that doesn't sound right. Beside, if you want real pointer semantics, you'll want to overload the `is` operator too... -- Michel Fortin michel.fortin michelf.com http://michelf.com/

Yes but then if your code fails really badly and you're called in front of the Senate to answer questions, you'll need to explain that it depends on what the meaning of "is" is. Kevin
Nov 12 2007