On Fri, Jun 30, 2023 at 03:18:41PM +0000, lili via Digitalmars-d-learn wrote: > 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})
addPoint(Point(4,5), Point(4,6)); T -- "No, John. I want formats that are actually useful, rather than over-featured megaliths that address all questions by piling on ridiculous internal links in forms which are hideously over-complex." -- Simon St. Laurent on xml-dev