AA with immutable values

Roman D. Boiko rb at d-coding.com
Sun Jun 24 05:37:59 PDT 2012


On Sunday, 24 June 2012 at 12:34:28 UTC, Jonathan M Davis wrote:
> On Sunday, June 24, 2012 14:24:48 Roman D. Boiko wrote:
>> Yeah, but I wonder that such a core feature as AA doesn't 
>> support
>> this use case better (I mean more efficiently).
>
> The current AA implementation is quite buggy. It works, but 
> there are all
> kinds of corner cases which it doesn't handle properly. Part of 
> the problem
> was that its implementation was shifted from the compiler to 
> druntime, and it
> was done fairly poorly. A redesign is underway (none of which 
> should affect its
> usage other than fixing bugs, since it should be entirely an 
> implementation
> matter, not API), but it hasn't been completed yet.
>
> - Jonathan M Davis
It would be nice to find a design which would not force the user 
to introduce an additional indirection (like I did in a 
workaround). This should not be a breaking change.


More information about the Digitalmars-d-learn mailing list