June 03, 2005
I need to overload the unary '*' operator like in *obj;

Seems like it's not in the doc.... I need it though
June 03, 2005
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
Top | Discussion index | About this forum | D home