Safety, undefined behavior, @safe, @trusted

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Nov 5 14:50:41 PST 2009


Walter Bright wrote:
> Andrei Alexandrescu wrote:
>> Nick Sabalausky wrote:
>>> Sounds great! The lower-grained safeness makes a lot of sense, and 
>>> I'm thrilled at the idea of safe D finally encompassing more than 
>>> just memory safety - I'd been hoping to see that happen ever since I 
>>> first heard that "safeD" only ment memory-safe. 
>>
>> I can think of division by zero as an example. What others are out there?
> 
> Casting away const/immutable/shared.

I think those lead to memory errors :o).

Andrei



More information about the Digitalmars-d mailing list