Example within documentations of D seriously need some improvement.
Steven Schveighoffer
schveiguy at yahoo.com
Fri May 27 06:31:59 PDT 2011
On Fri, 27 May 2011 09:22:01 -0400, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:
> On 5/27/11, Matthew Ong <ongbp at yahoo.com> wrote:
>> http://www.digitalmars.com/d/2.0/operatoroverloading.html # people done
>> C++ can understand others may not.
>
> Well, explaining the concept of operator overloading should be a
> separate topic. People who know what operator overloading is will look
> in the language docs to figure out the syntax and use it right away.
>
> Doesn't Java have operator overloading? A lot of popular languages
> except maybe C have it, I think.
Last I checked they do not. It's why the String class has charAt instead
of an equivalent opIndex.
-Steve
More information about the Digitalmars-d
mailing list