Re: What is a dchar ?

2023-07-25 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
The spec says they are unsigned, so if ldc is using sign extension, that is probably a bug.

Re: Which D compiler is the most maintained and future-proof? [DMD GDC and LDC]

2023-07-25 Thread Ernesto Castellotti via Digitalmars-d-learn
On Monday, 24 July 2023 at 13:51:18 UTC, Richard (Rikki) Andrew Cattermole wrote: On 25/07/2023 1:26 AM, devosalain wrote: I could be interesting to also compare the licenses of the 3 compilers. There isn't a huge difference between them. The frontend, druntime and most of phobos (minus zlib

Re: WASM - Passing JS objects to D

2023-07-25 Thread ryuukk_ via Digitalmars-d-learn
Think about the readers when you paste code https://www.markdownguide.org/extended-syntax/#syntax-highlighting

WASM - Passing JS objects to D

2023-07-25 Thread JN via Digitalmars-d-learn
What is the recommended way to pass JS objects to D when doing WASM? My current solution is to maintain an ID <-> object mapping in JS, something like: const mapJsToHandle = new WeakMap(); const mapHandleToJs = {}; var id = 0; const toHandle = (x) => { if (!mapJsToHandle.has(x)) {

Re: Is it possible to make an Linux Executable Binary using a Windows Operating System? [compiling and linking]

2023-07-25 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 24 July 2023 at 11:57:11 UTC, 4 wrote: Could someone share a step by step way to compile and link a x86-64 Linux Binary using Windows 10? (Without virtual machine or "Linux Subsystem for Windows") I want to compile and link a Hello World program for both Linux and Windows. **