Consistency, Templates, Constructors, and D3

F i L witte2008 at gmail.com
Mon Aug 27 06:59:52 PDT 2012


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);




More information about the Digitalmars-d mailing list