On Tuesday, 1 September 2020 at 20:39:58 UTC, Mike Brown wrote:
Is there an alternative that works with BetterC for dynamic
arrays?
You may give these a try:
https://github.com/aferust/dvector
For associative arrays: https://github.com/aferust/bcaa
On Thu, Sep 03, 2020 at 06:18:00PM +, Mike Brown via Digitalmars-d-learn
wrote:
[...]
> I did however, get taken in by how small and precise the D code was
> compared to my C++ equivalent. The templating is beautiful, I’m now
> considering writing in D rather than C++ as the smaller and cleare
Hi again,
I now understand the issues at play. I get linking errors to the
druntime features. I now understand the earlier replies.
I was able to resolve all but TypeInfo errors from the suggested
druntime replacements. Coming from a C++ background - I’m not
even sure how I’m using TypeInfo
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
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?
Thank you for the other WASM l
On Wednesday, 19 August 2020 at 21:24:23 UTC, Mike Brown wrote:
I have done some tests, and it appears that classes are
supported (LDC 1.22.0)?
extern(C++) classes are supported by -betterC. With LDC, D
classes are supported to some extent too since v1.11, but this
requires a custom object.d
On Wednesday, 19 August 2020 at 21:24:23 UTC, Mike Brown wrote:
Hi all,
I'd like to make a WASM project, and looking into options.
It's scattered in several places including
https://gist.github.com/skoppe/7617ceba6afd67b2e20c6be4f922725d
Are you aware of Spasm?
https://github.com/skoppe/spasm
On Wednesday, 19 August 2020 at 21:24:23 UTC, Mike Brown wrote:
I can see that LDC supports WASM output, and I believe this
requires BetterC to be enabled?
Not really but anything beyond -betterC is still kinda diy right
now.
So I happened to do port my little tetris game in D to wasm just
Hi all,
I'd like to make a WASM project, and looking into options.
I can see that LDC supports WASM output, and I believe this
requires BetterC to be enabled? The documentation states that
classes are not supported by BetterC, but its preferable/required
for me.
I have done some tests, and