betterC DLL in Windows

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Feb 5 00:27:19 UTC 2023


On 05/02/2023 1:20 PM, Adam D Ruppe wrote:
> Even module imports can fail because betterC disables outputting the 
> module data info, even if it would otherwise be required by language 
> rules, despite it not using the druntime.

This only affects you if you use full D to interact with -betterC code.

Even then it is very easy to work around.

https://github.com/Project-Sidero/basic_memory/blob/main/source/sidero/base/moduleinfostubs.d

-betterC DLL's do work with full D executables.

If all you need it for is gluing some stuff together don't listen to 
Adam about it not working, because it absolutely does and quite usable 
if you're not expecting there to be a GC.


More information about the Digitalmars-d-learn mailing list