Converting C .h Files to D Modules

Timon Gehr timon.gehr at gmx.ch
Wed Mar 21 09:21:49 PDT 2012


On 03/20/2012 07:01 PM, Pedro Lacerda wrote:
> Hi all,
>
> How to convert the following struct to D?
>
> typedef struct S {
>      int type;
>      void *obj;
> } S;
>
> I didn't found anything at http://dlang.org/htomodule.html.

(Assuming your 'int' is 32 bits)

struct S{
     int type;
     void* obj;
}


More information about the Digitalmars-d-learn mailing list