Re: SumType! seemingly results in cryptic error, with dub suggesting to make an issue ticket

2023-05-30 Thread user456 via Digitalmars-d-learn
On Tuesday, 30 May 2023 at 08:42:38 UTC, Gimbles wrote: My code is this [...] Should I make an issue for this as it suggests? 100% yes. This an "Internal Compiler Error" (ICE), meaning the compiler has crashed. Open a ticket here : https://issues.dlang.org/show_bug.cgi?id=23935 with a title

Re: Best way to use C library

2023-05-19 Thread user456 via Digitalmars-d-learn
On Friday, 19 May 2023 at 18:31:45 UTC, Maximilian Naderer wrote: Hello guys, So what’s currently the best way to use a big C library? Let’s assume something like cglm assimp glfw ImportC doesn’t really work for such huge libraries, I’ll investigate further. Deimos is outdated or there are n

Re: Variable length arrays under -betterC?

2023-04-17 Thread user456 via Digitalmars-d-learn
On Monday, 17 April 2023 at 18:34:19 UTC, DLearner wrote: Requirement is to write some D code (which avoids the GC), that will be called from C. So simple approach seemed to be to write D code under -betterC restrictions. However, also need variable length arrays - but D Dynamic Arrays not al

Re: how to use unknown size of array at compile time for further processing

2017-10-01 Thread user456 via Digitalmars-d-learn
On Sunday, 1 October 2017 at 10:07:40 UTC, thorstein wrote: Hi, assumed, I need the size of a dynamic array for further processing, which is unknown at compile time. Below are my example, which doesn't work and two alternatives. [...] They are not alternatives. They are the only way of doin