On Friday, 5 February 2021 at 21:40:29 UTC, wolfiesnotfine wrote:
In any case, I'm unsure how I would runtime init from C++. Is
there a specific function I should call?
https://dlang.org/phobos/core_runtime.html#.rt_init
Could this be done at compile time in a consteval or constexpr
function?
On Friday, 5 February 2021 at 21:11:20 UTC, Adam D. Ruppe wrote:
tbh I'd say just don't use betterC, you can still runtime init
from C++ and be judicious in what features you use to keep it
more minimal.
Hmm. I'm mostly concerned about issues or slowdowns in mixing the
manual memory managemen
On Friday, 5 February 2021 at 21:04:00 UTC, wolfiesnotfine wrote:
however sse() from core.cpuid is incorrectly reporting as
false. The function properly returns true if it's not called
from C++ but instead a D main function.
That makes me think it is a static constructor, and indeed there
is
Hello, I'm currently working on a primarily C++ project but I
wanted to leverage some of D's language features and library for
a few parts. I'm using the betterC subset and here's the code
snippet in D: https://run.dlang.io/is/XOXF06
It's quite a simple test, and the code just gets called from