BetterC + WASM Update

Seb seb at wilzba.ch
Wed Sep 2 10:11:19 UTC 2020


On Tuesday, 1 September 2020 at 20:39:58 UTC, Mike Brown wrote:
> Hi All,
>
> Thank you for your replies. My tests have been via compiler 
> explorer.
>
> https://godbolt.org/z/4f9nKj I have done this without -BetterC, 
> as the dynamic array fails. I guess that uses GC? Is there an 
> alternative that works with BetterC for dynamic arrays?

You could try http://mir-algorithm.libmir.org/mir_rc_array.html 
or the planned core.experimental.rcarray 
(https://github.com/dlang/druntime/pull/2679).


More information about the Digitalmars-d-learn mailing list