No bounds checking for dynamic arrays at compile time?

bearophile bearophileHUGS at lycos.com
Thu Dec 13 07:07:21 PST 2012


Gopan:

> Why didn't I get a compilation error?  All the array sizes are 
> known at compile time.  Right?

The good Hara and Don have teamed and they have already written a 
patch and applied it:

http://d.puremagic.com/issues/show_bug.cgi?id=6883

So if you are able to compile DMD you are able to test if the new 
patch works in your case too.

Bye,
bearophile


More information about the Digitalmars-d mailing list