Forbid dynamic arrays in boolean evaluation contexts

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Mar 26 07:25:11 PDT 2013


On 3/26/13 10:07 AM, bearophile wrote:
> Vladimir Panteleev:
>
>> We could simply state that slicing NULL is undefined behavior.
>
> Undefined behaviors are bad.
>
> Bye,
> bearophile

Without -noboundscheck, which is opt-in, there is no undefined behavior.

Andrei


More information about the Digitalmars-d mailing list