WebAssembly + Custom Runtime + Associative Arrays

kinke noone at nowhere.com
Wed Nov 11 02:05:25 UTC 2020


Ouch, it's compiler bug - the compiler's hardcoded prototype for 
_aaInX() uses a `void*` as first param, not a `AA` struct 
wrapping the impl pointer. So this assumes the ABI/calling 
convention treats both types identically, which isn't currently 
the case for LDC's wasm ABI.

So using `void* _aaInX(AAImpl* aaimpl, ...)` works around this.


More information about the digitalmars-d-ldc mailing list