Re: D to C++

2016-08-31 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 31 August 2016 at 12:19:33 UTC, Cauterite wrote: On Wednesday, 31 August 2016 at 11:43:12 UTC, Nick wrote: That's quite nice, but not what I'm looking for. What Calypso does, as far as I can see, is to make it possible to compile C++ and D together. I'm looking for a compiler that

Re: D to C++

2016-08-31 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 31 August 2016 at 12:13:38 UTC, Michael wrote: I can't imagine that's been done, and I'm not sure it will be high on anybody's list of priorities I'm afraid. A lot of work was done on automating C++ -> D, but converting D, a language intended to replace C++, to C++ itself seems a

Re: D to C++

2016-08-31 Thread Cauterite via Digitalmars-d-learn
On Wednesday, 31 August 2016 at 11:43:12 UTC, Nick wrote: That's quite nice, but not what I'm looking for. What Calypso does, as far as I can see, is to make it possible to compile C++ and D together. I'm looking for a compiler that takes in D code and spits out either C or C++ code. Your bes

Re: D to C++

2016-08-31 Thread Michael via Digitalmars-d-learn
On Wednesday, 31 August 2016 at 11:43:12 UTC, Nick wrote: On Tuesday, 30 August 2016 at 14:24:22 UTC, eugene wrote: On Tuesday, 30 August 2016 at 13:33:44 UTC, Nick wrote: Is it possible to compile from D to C++? Explanation: I do some competition programming and would like to write it in D i

Re: D to C++

2016-08-31 Thread Nick via Digitalmars-d-learn
On Tuesday, 30 August 2016 at 14:24:22 UTC, eugene wrote: On Tuesday, 30 August 2016 at 13:33:44 UTC, Nick wrote: Is it possible to compile from D to C++? Explanation: I do some competition programming and would like to write it in D instead of C++ :) maybe will help https://wiki.dlang.org/C

Re: D to C++

2016-08-30 Thread eugene via Digitalmars-d-learn
On Tuesday, 30 August 2016 at 13:33:44 UTC, Nick wrote: Is it possible to compile from D to C++? Explanation: I do some competition programming and would like to write it in D instead of C++ :) maybe will help https://wiki.dlang.org/Calypso

Re: D to C++ DLL

2014-03-13 Thread Harpo
Perfect Thanks!

Re: D to C++ DLL

2014-03-13 Thread FreeSlave
long in D and long in C++ are different types. You should use c_long from core.stdc.config to interface with C/C++ functions.

Re: D to C++ DLL

2014-03-13 Thread Adam D. Ruppe
I didn't look closely, but since you used the "long" type my guess is that's the problem. long in D is always 64 bit, but in C is sometimes 32 bit and sometimes 64 bit. On the D side, instead of writing "long", import core.stdc.config; and use c_long. Or just use int on both sides, that shou