why static array can be reassigned with new allocation?

Nick Treleaven nick at geany.org
Sat Oct 15 11:49:04 UTC 2022


On Saturday, 15 October 2022 at 11:29:00 UTC, rassoc wrote:
> On 10/14/22 21:46, jfondren via Digitalmars-d wrote:
>> and it crashes with an oversized array as the lengths don't 
>> match
>
> Try compiling with -release for extra fun, or not.

Use `@safe` then you still get bounds checks with `-release`. (Or 
don't use `-release`).


More information about the Digitalmars-d mailing list