aa bug?

Jarrett Billingsley jarrett.billingsley at gmail.com
Tue Jul 28 15:06:43 PDT 2009


On Tue, Jul 28, 2009 at 6:09 PM, Saaa<empty at needmail.com> wrote:
>
>> But you never inserted anything in aa["test"].
>>
>> You must do:
>>
>> S s;
>> aa["test"] = s;
>> aa["test"].i = 10;
>>
>> or:
>>
>> S s;
>> s.i = 10;
>> aa["test"] = s;
>
> erm, ok
> Thanks
> So no creation on use :)
> Personally I find the declation step clutter in the first case.
> Maybe promote the bug  to a request?

It won't happen.  The behavior you want *used* to be the AA behavior
but was changed after several years and much complaining.  It's not
going back.


More information about the Digitalmars-d-learn mailing list