Iup and nukclear interface in D.

Mike Parker via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Jun 23 01:14:42 PDT 2016


On Thursday, 23 June 2016 at 06:32:09 UTC, mogu wrote:
> http://code.dlang.org/packages/iupd
> http://code.dlang.org/packages/nukleard
>

A couple of points:

* All of those 'static immutable' you have would be better as 
manifest constants, or logically grouped in anonymous enums. The 
former are lvalues and will wind up in the data segment, but you 
likely don't need them to be.

* extern(C) functions should, at a minimum, be declared as @nogc 
and nothrow for client code using those attributes.




More information about the Digitalmars-d-announce mailing list