test[0u] of type bool[1u] does not have a boolean value
bearophile
bearophileHUGS at lycos.com
Sat Jun 29 06:11:09 PDT 2013
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
More information about the Digitalmars-d-learn
mailing list