Few things
Sean Kelly
sean at f4.ca
Thu Aug 2 09:05:02 PDT 2007
Bruno Medeiros wrote:
> BCS wrote:
>>> -------------------------
>>>
>>> 6) It can be useful a way to create an empty associative array with
>>> something like:
>>> new int[char[]]();
>>>
>>
>> assigning null to an aa results in an empty aa, I'm not sure if it
>> clear other references to it though.
>>
>
> Are you sure of that? It seems that at least for AA's, empty arrays are
> different than null arrays:
>
> int[char[]] b;
> writefln(b is null); // true
> writefln(b == null); // true
Huh. So equality comparisons with null work for AAs but crash with objects?
Sean
More information about the Digitalmars-d
mailing list