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

Artur Skawina art.08.09 at gmail.com
Thu Jul 4 05:53:41 PDT 2013


On 07/04/13 14:41, Timon Gehr wrote:
> 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) )

What's the point? 

[Mutation will cause reallocation; (void*)0 isn't special]

artur


More information about the Digitalmars-d mailing list