Forbid dynamic arrays in boolean evaluation contexts
Steven Schveighoffer
schveiguy at yahoo.com
Tue Mar 26 15:04:32 PDT 2013
On Tue, 26 Mar 2013 17:31:26 -0400, Vladimir Panteleev
<vladimir at thecybershadow.net> wrote:
> On Tuesday, 26 March 2013 at 17:57:47 UTC, Steven Schveighoffer wrote:
>> But it definitely is NOT a bug. Any suggested change would be an
>> enhancement request.
>
> Why do you think it is not a bug? It is inconsistent with "", and what's
> the point of [] if you can just use "null"?
Meaning it functions as designed. Whether you agree with the design or
not, it's still not a bug.
And once again, "" is different because of C compatibility. If that were
not a requirement, "" would map to null. There is no such requirement for
general slices.
-Steve
More information about the Digitalmars-d
mailing list