struct opAssign in spec

Red resmith at lavabit.com
Wed Dec 19 21:57:17 PST 2012


Looking at the Kindle spec there appears to be an error in the 
section for structs called Assignment Overload.

S* opAssign (ref const S s) {
    a = s.a;
}

gives an error:
Error: cannot implicitly convert expression (this) of type S to S*

S opAssign (ref const S s) {

does compile.


More information about the Digitalmars-d-learn mailing list