On Saturday, 29 June 2013 at 13:11:10 UTC, bearophile wrote:
monarch_dodra:
Related: I think this might actually give you a compiler
warning about doing a range assign without slicing? Bearophile
had suggested this shouldn't work unless you actually type:
"test[0][] = false;"
But I prefer:
"test[0] []= false;"
I can't test right now: Does your code emit no warnings with
-w ?
I have also suggested to have the "-wi" switch activated on
default (as I think C# does, because people forget to use it
all the time!), give a switch to disable on request the
informational warnings (because once in a while you don't want
warnings), and remove the -w switch (because it breaks the
semantics of D programs) :-)
http://d.puremagic.com/issues/show_bug.cgi?id=10321
Bye,
bearophile
Thanks for the link. I actually wanted to state that I think you
were one of the people who thought the above should be mandatory
syntax? I do.