Empty array literals
retard
re at tard.com.invalid
Sun Mar 7 05:32:51 PST 2010
Sat, 06 Mar 2010 21:30:35 -0500, bearophile wrote:
> In D null can also be used to represent an empty associative array. If
> you think of AAs as instances of a class to be used by reference, then
> using a null to represent an empty AA is meaningful (the main difference
> is that you don't need "new" to allocate it at the beginning).
The associative array is a sad type in D. It has nasty semantics. I'd
like to see it as a real library defined type with just syntactic sugar
for constructing literals. Too bad that's not what Walter thinks.
More information about the Digitalmars-d
mailing list