DIP60: @nogc attribute

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 15 11:41:36 PDT 2014


On Tue, 15 Apr 2014 13:01:40 -0400, Walter Bright  
<newshound2 at digitalmars.com> wrote:

> http://wiki.dlang.org/DIP60'

Wow, that's quite underspecified.

What about syscalls? Nothrow functions allow one to call non-nothrow  
functions, but catch all exceptions. What if you want to use the GC for  
allocation temporarily, and then delete all the usage before returning?  
Must you use C malloc/free? What about such code that is @safe, which  
cannot call free?

Off the top of my head...

-Steve


More information about the Digitalmars-d mailing list