Struct with default ctor (Was: [dmd-beta] dmd 2.064 beta take 2)

Simen Kjaeraas simen.kjaras at gmail.com
Mon May 20 10:59:47 PDT 2013


On Mon, 20 May 2013 18:05:18 +0200, Byron Heads <byron.heads at gmail.com>  
wrote:

> What about dealing with externs you want to protect?
>
> extern(C) void foo(@nonnull int* x);

There is nothing stopping you from declaring that with this signature:

extern(C) void foo(NonNull!(int*) x);

-- 
Simen


More information about the Digitalmars-d mailing list