On Wednesday, 11 January 2017 at 21:52:57 UTC, Andrew Hall wrote:
Basically, gmp.h is split up into 4 files:
gmp.d, integer.d, floating.d & rational.d.
these are all public import'd by package.d so if you would like
the contents of all of gmp.h,
import deimos.gmp. However if you only need the integer stuff,
you could just import deimos.gmp.gmp, deimos.gmp.integer;
operators.d contains my first wrapper of the mpz_t type.
Thanks.
One important thing...you've forgotten to qualify the D wrapper
functions as `pure @nogc`. All should be `@nogc` and most should
be `pure`. I'm not sure which of them that aren't pure, that is
which modify global state. Maybe you can look that up in the GMP
manual. I find the pdf version the easiest to search.