Empty associative array crashes program
Maxim Fomin
maxim at maxim-fomin.ru
Mon Apr 1 22:22:26 PDT 2013
On Monday, 1 April 2013 at 23:56:08 UTC, Steven Schveighoffer
wrote:
> No, AA's are not classes (which BTW have had that problem
> fixed), they are pImpl structs. The equals operator should
> check for null before comparing the contents. It is a valid
> bug.
>
> -Steve
This argument can be applied to classes too. I think it would be
better to reject such code like in case with classes.
More information about the Digitalmars-d
mailing list