F i L wrote:
auto a = Point(int)[].new(5).new(1, 2);
On second thought, the shorthand might need to require the '[]' syntax:
auto a = Point(int)[].new(5)
a[].new(1, 2)
// shorthand:
auto a = Point(int)[].new(5)[].new(1, 2);
F i L wrote:
auto a = Point(int)[].new(5).new(1, 2);
On second thought, the shorthand might need to require the '[]' syntax:
auto a = Point(int)[].new(5)
a[].new(1, 2)
// shorthand:
auto a = Point(int)[].new(5)[].new(1, 2);