Forbid dynamic arrays in boolean evaluation contexts

Daniel Murphy yebblies at nospamgmail.com
Mon Mar 25 07:18:11 PDT 2013


"bearophile" <bearophileHUGS at lycos.com> wrote in message 
news:bwgnbflygowctlisistg at forum.dlang.org...
> 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:

I am in favour of deprecating/removing this, then bringing it back so that
if (arr)
is the same as
if (arr.length) 




More information about the Digitalmars-d mailing list