[:] as empty associative array literal, plus warning for null

Timon Gehr timon.gehr at gmx.ch
Thu Jul 4 05:41:48 PDT 2013


On 07/04/2013 11:25 AM, Regan Heath wrote:
> ...
>
> Tommi's suggestion that all empty arrays share a common pointer is a
> good one and more or less solves the "it has to allocate memory" complaint.
> ...

(That was actually my suggestion. :o) )

Sharing a common pointer has some drawbacks as well, because it still 
makes [] somewhat special. It is probably worth it though.


More information about the Digitalmars-d mailing list