Array literals

Michel Fortin michel.fortin at michelf.com
Sat Oct 18 05:31:53 PDT 2008


On 2008-10-16 11:27:24 -0400, Andrei Alexandrescu 
<SeeWebsiteForEmail at erdani.org> said:

> T[$] was also suggested.

That looks much better than T[auto]. Because auto usually replaces a 
type, it makes me think more of an associative array; $ being the 
length of the array, it is exactaly what I put in the brakets when I 
want a static array.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list