The D 1.0 docs are stuffed.

Daniel Keep daniel.keep.lists at gmail.com
Tue Mar 16 07:39:48 PDT 2010


I think the 1.0 and 2.0 docs have gotten confused.  For example, from
operatoroverloading.html (in the 1.057 download and website):

> If structs declare an opEquals member function, it should follow the
> following form:
>
> > struct S {
> >     int opEquals(ref const S s) { ... }
> > }

> The expression:
>
> > a op= b
>
> is rewritten as:
>
> > a.opOpAssign!("op")(b)



More information about the Digitalmars-d mailing list