Andrej Mitrovic: > On 3/23/12, Timon Gehr <[email protected]> wrote: > > Maybe you are also missing that this is valid code: > > int[] a = [1 : 2, 3 : 4]; > > What is this syntax for and how is it used? It creates '[0, 2, 0, 4]', > which is puzzling to me.
See: http://d.puremagic.com/issues/show_bug.cgi?id=4703 This is why I was unnerved when Walter has recently said that we should reduce the amount of breaking changes in D. There are several D problems like that one that should be fixed. This is an example of bug report that needs to be addressed sooner instead of later. Bye, bearophile
