digitalmars.dip.ideas - extern(CT)
https://forum.dlang.org/thread/emyljvbbyrbypztrskxg forum.dlang.org if a symbol is marked extern(CT) delete it before it passed to the linker, or some other stage of processing; and lets see what happens. I think youd get an optimizing tool, improve metaprogramming for betterc and speed up compilation when you know the symbol is metaprogramming nonsense such as `std.StaticMap`
Aug 14
On Thursday, 14 August 2025 at 17:28:10 UTC, monkyyy wrote:https://forum.dlang.org/thread/emyljvbbyrbypztrskxg forum.dlang.org if a symbol is marked extern(CT) delete it before it passed to the linker, or some other stage of processing; and lets see what happens. I think youd get an optimizing tool, improve metaprogramming for betterc and speed up compilation when you know the symbol is metaprogramming nonsense such as `std.StaticMap`That's the third time this shows up: Quirin:https://forum.dlang.org/post/goryhnblvdfklrilrfur forum.dlang.org Illya: https://forum.dlang.org/post/veqgighfeexaxrgpwnuj forum.dlang.org I really hope that somebody could take a look on that and users could start benefitting with that ASAP
Aug 14
On Thursday, 14 August 2025 at 22:43:20 UTC, Hipreme wrote:On Thursday, 14 August 2025 at 17:28:10 UTC, monkyyy wrote:I kinda think people were thinking about it wrong; isn't it just something that effects "mangling" ```d extern(C) foo()=>3; enum int bar=foo; ``` compiles, so isnt it an extern thing? In my head theres a list of extern mangling functions that magicly defines whatever mangleof is, and CT could just be a very very dumb onehttps://forum.dlang.org/thread/emyljvbbyrbypztrskxg forum.dlang.org if a symbol is marked extern(CT) delete it before it passed to the linker, or some other stage of processing; and lets see what happens. I think youd get an optimizing tool, improve metaprogramming for betterc and speed up compilation when you know the symbol is metaprogramming nonsense such as `std.StaticMap`That's the third time this shows up: Quirin:https://forum.dlang.org/post/goryhnblvdfklrilrfur forum.dlang.org Illya: https://forum.dlang.org/post/veqgighfeexaxrgpwnuj forum.dlang.org I really hope that somebody could take a look on that and users could start benefitting with that ASAP
Aug 14
On Thursday, 14 August 2025 at 23:37:23 UTC, monkyyy wrote:In my head theres a list of extern mangling functions that magicly defines whatever mangleof is`extern` is also used to specify the used calling convention. I feel like this feature should rather be a `pragma` instead.
Aug 15
On Friday, 15 August 2025 at 12:37:05 UTC, 0xEAB wrote:I feel like this feature should rather be a `pragma` instead.Maybe something along the lines of `pragma(emitCode, false)` or `pragma(codeGen, false)`?
Aug 15