A simplification of the RvalueRef idiom
Satoshi via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Nov 22 14:03:14 PST 2016
or I have simple class
class View {
this(Rectangle frame) {...}
this(float, float, float, float) { ... }
this(Point, Size) { ... }
}
then struct Point, Size and Rectangle (Point, Size)
now I need to write 2 overloads for View class taking 4 floats or
(Point, Size) and this must do in every descendant of View class.
More information about the Digitalmars-d-learn
mailing list