www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - operator*

reply "G.Vidal" <gyvidal wanadoo.fr> writes:
I need to overload the unary '*' operator like in *obj;

Seems like it's not in the doc.... I need it though
Jun 03 2005
parent pragma <pragma_member pathlink.com> writes:
In article <pan.2005.06.03.12.03.32.266437 wanadoo.fr>, G.Vidal says...
I need to overload the unary '*' operator like in *obj;

Seems like it's not in the doc.... I need it though
D doesn't have operator overloads for the pointer ('*') operator or the assignment ('=') operator like C++ does. Its been discussed to death in the main newsgroup, and Walter is firm about not needing such things in the language. Anyway, if you need a unary operator to overload for some purpose, may I suggest opPos() instead? - EricAnderton at yahoo
Jun 03 2005