Forbid dynamic arrays in boolean evaluation contexts

Peter Alexander peter.alexander.au at gmail.com
Mon Mar 25 06:55:02 PDT 2013


On Sunday, 24 March 2013 at 22:10:06 UTC, bearophile wrote:
> So my proposal of Issue 4733 is to forbid (with the usual 
> warning/deprecation intermediate steps) the use of dynamic 
> arrays in a boolean context:

Seems like a sensible idea. I've never really understood why null 
is acceptable as a slice anyway. It's not a class, so it 
shouldn't be allowed.


More information about the Digitalmars-d mailing list