Sumit Raja:

Am I using version correctly? How is this done usually?

I think "version" is usually meant to be given as compiler switch. Maybe a simple enum + static if is enough in your case.

And keep in mind that C int and D int are different on 64 bit systems, the D int is always 32 bit. In Phobos there are ints of the size of C.

Bye,
bearophile

Reply via email to