Memory safety depends entirely on GC ?

Peter Alexander via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 21 11:38:01 PST 2015


On Saturday, 21 February 2015 at 18:42:54 UTC, deadalnix wrote:
> On Saturday, 21 February 2015 at 18:06:57 UTC, Peter Alexander 
> wrote:
>> On Saturday, 21 February 2015 at 10:00:07 UTC, FrankLike wrote:
>>> Now,some people think D is a 'Memory safety depends entirely 
>>> on GC' system Language,what do you think?
>>
>> It's kind of right, at the moment, since @nogc D is still 
>> quite difficult to use, mostly due to exceptions and library 
>> artifacts. Both of these can be solved though.
>
> That wouldn't make @nogc safe in any way.

@safe @nogc

:-)

(I rewrote the post a few times. Originally I just wrote "mark 
main @safe @nogc and you're fine", but I think it's a bit 
misleading since @nogc is still difficult to use, so I wrote 
about that instead and forgot to mention @safe at all. Thanks for 
pointing out.)


More information about the Digitalmars-d mailing list