How is externref represented in D when target is WASM, and does it need some prior import? #4829
Unanswered
ZILtoid1991
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Would something like the sketch in https://forum.dlang.org/post/[email protected] work? A generic magic struct to be recognized by the compiler, which has an address-space number as template param, and aliases some pointer/class ref/function pointer. And then a bunch of platform-specific convenience aliases, for wasm, dcompute etc. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a short testcase for my wasmtime binding for D, that would test with class references being passed to the WASM side, then used as types for a library. The official dlang wiki does not cover it in any of its chapters about WASM (yet).
Beta Was this translation helpful? Give feedback.
All reactions