Unexpected behaviour in associative array

Adam D. Ruppe destructionator at gmail.com
Fri Apr 19 12:43:06 UTC 2019


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.


More information about the Digitalmars-d-learn mailing list