is Dlang support Uniform initialization like c++
lili
lili at mm.com
Fri Jun 30 15:18:41 UTC 2023
struct Point {
int x;
int y;
this(int x, int y) { this.x =x; this.y=y;}
}
void addPoint(Point a, Point b) {
...
}
How too wirte this: addPoint({4,5}, {4,6})
More information about the Digitalmars-d-learn
mailing list