Contracts or Exceptions?

Kagamin spam at here.lot
Wed Mar 30 07:25:40 PDT 2011


Kai Meyer Wrote:

> do all the checking before hand. Arrays are a good example. When not in 
> -release mode, array boundaries are checked upon every access to the 
> array, and an exception is thrown if access goes out of bounds. In 
> -release mode, if you go out of bounds you get a segfault.

No, you get a remote root vulnerability.


More information about the Digitalmars-d-learn mailing list