www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - The D 1.0 docs are stuffed.

reply Daniel Keep <daniel.keep.lists gmail.com> writes:
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)


Mar 16 2010
parent BCS <none anon.com> writes:
Hello Daniel,

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

Must be a missing macro somewhere (IIRC they both come from the same source) -- ... <IXOYE><
Mar 16 2010