CTFE and BetterC compatibility

Claude claudemr at live.fr
Wed Apr 27 14:35:32 UTC 2022


On Wednesday, 27 April 2022 at 14:27:43 UTC, Stanislav Blinov 
wrote:
> This is a long-standing pain point with BetterC (see 
> https://issues.dlang.org/show_bug.cgi?id=19268).

That's what I was afraid of... Thanks for the link to the 
bug-report.

On Wednesday, 27 April 2022 at 14:27:43 UTC, Stanislav Blinov 
wrote:
> When not using BetterC, but not linking against druntime 
> either, you have to provide your own implementation for those 
> functions. This is e.g. so you can replace druntime with your 
> own version.

Yeah... The problem is that there will a lot of those functions 
to define (for a whole XML parser). I suppose I can use cork 
functions with empty bodies??

I will check if the linker optimize them out...


More information about the Digitalmars-d-learn mailing list