Unexpected behaviour in associative array

Arredondo arm.plus at gmail.com
Fri Apr 19 12:45:03 UTC 2019


On Friday, 19 April 2019 at 12:43:06 UTC, Adam D. Ruppe wrote:
> On Friday, 19 April 2019 at 12:03:33 UTC, Arredondo wrote:
>> key in aa
>
> Keep in mind that D's `in` operator returns a *pointer* to the 
> element, or null if it isn't there.
>
> If you aren't treating the return value as a pointer, you could 
> hit trouble.

I understand that. The issue is that it should't return null if 
theres a matching element in the aa!


More information about the Digitalmars-d-learn mailing list