Proof of concept - library AA
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Sat May 30 01:50:07 PDT 2015
On Friday, 29 May 2015 at 22:41:13 UTC, Martin Nowak wrote:
>> 2. What issues disallows us to implement full library AA?
>> Except .stringof, .mangleof, and other compiler magic.
>> I see only two issues: opIndexCreate and building aa from
>> literals.
>
> - error messages
> - attributes
> - literals (especially polysemous initializers, i.e.
> ubyte[ubyte] aa = [0:1, 1:2])
> - implicit tail const conversion Val[Key] -> const(Val)[Key]
> - lots of magic around making Key const
> - delete aa[key]
> - lots of other small details (grep for Taarray in
> src/expression.c)
>
> This is a heavily used built-in type, we can't risk a rewrite
> that breaks lots of code.
Not sure how much this is a problem but implicit conversion from
null may also be an issue:
http://localhost/post/asvcbsvfcxznwypttojk@192.168.0.1
More information about the Digitalmars-d
mailing list