checkedint call removal

Tobias Pankrath via Digitalmars-d digitalmars-d at puremagic.com
Sat Aug 2 05:12:21 PDT 2014


On Saturday, 2 August 2014 at 11:12:42 UTC, Artur Skawina via 
Digitalmars-d wrote:
>
> _`assume` is extremely dangerous_.

You sure can come up with an example where -release (and only 
with release the problem exists) results in equally dangerous 
behaviour by overwriting memory due to disabled bound checks.

> Redefining `assert` to include `assume`
> would result in D's `assert` being banned from the whole code 
> base, if 'D'
> even would be consider a 'sane' enough language to use...

Or you ban -release from the project.


More information about the Digitalmars-d mailing list