d-programming-language.org

Walter Bright newshound2 at digitalmars.com
Mon Jul 4 14:41:43 PDT 2011


On 7/4/2011 12:48 PM, bearophile wrote:
> In this case you wrap the code in something that allows it to overflow without errors, like:
>
> unsafe(overflows) {
>      // code here
> }

Regardless of the merits of doing overflow checks, this is the completely wrong 
way to go about it.

This must be a property of the type, not of its usage.

It gets semantically pretty wacky when you have function calls for "code here".


More information about the Digitalmars-d mailing list