Proposed strategy to support WASM in D

AnimusPEXUS animuspexus at protonmail.com
Fri Nov 18 07:28:33 UTC 2022


On Friday, 18 November 2022 at 07:06:08 UTC, Johan wrote:
> On Friday, 18 November 2022 at 00:55:57 UTC, AnimusPEXUS wrote:
>> 
>
> Can you give an example of what goes wrong? `i32` is LDC/LLVM's 
> type of signed _and_ unsigned integers, there is no distinction 
> on LLVM IR level.
>
> -Johan

for example, if I export function uint fname(uint p1, uint p2), 
the resulting wasm code treats values as signed. but actually I 
don't know if it possible for wasm to really know I wast to pass 
unsigned value.


More information about the Digitalmars-d mailing list