On Monday, 13 September 2021 at 16:12:34 UTC, H. S. Teoh wrote:
On Mon, Sep 13, 2021 at 02:12:36PM +0000, NonNull via Digitalmars-d-learn wrote:
Which operators cannot be overloaded and why not?

Others have already given the list, so I won't repeat that.

I didn't see unary &. Maybe others are missing.

As to the "why":

In general, D tries to avoid the wild wild west, every operator for himself situation in C++ that leads to unreadable, unmaintainable code.

Thanks for this explanation. The consolidation you mention is great!


Reply via email to