digitalmars.D - AssociativeArray!(K,V) .init has no [] operator
- Philippe Sigaud (8/8) Mar 14 2010 There has been lots of AssociativeArray-related bugs recently. I'm not s...
- bearophile (4/5) Mar 14 2010 It's a bug, caused by the change from built-in to partially built-in. I ...
- Philippe Sigaud (4/6) Mar 14 2010 Done:
There has been lots of AssociativeArray-related bugs recently. I'm not sure this one has been reported, I tried to find it in bugzilla, with no success. auto aa = (int[int]).init; aa[3] = 2; // Error, no [] operator overload for type AssociativeArray!(int,int) whereas this works, obviously: int[int] aa; aa[3] = 2; I use .init a lot in template constraints, as std.algo or .range does. Do other people here do that also? Philippe
Mar 14 2010
Philippe Sigaud:There has been lots of AssociativeArray-related bugs recently. I'm not sure this one has been reported, I tried to find it in bugzilla, with no success.It's a bug, caused by the change from built-in to partially built-in. I think you can add it to Bugzilla. Bye, bearophile
Mar 14 2010
On Sun, Mar 14, 2010 at 15:57, bearophile <bearophileHUGS lycos.com> wrote:It's a bug, caused by the change from built-in to partially built-in. I think you can add it to Bugzilla.Done: http://d.puremagic.com/issues/show_bug.cgi?id=3962
Mar 14 2010