dmd
dmd copied to clipboard
dmd D Programming Language compiler
This PR introduces the templated version of `_d_class_cast`, cleaning up a bunch of code in `e2ir.d`. I also had to add an additional check in `expressionsem.d` in case the casted...
Default args sema appears to be already run but sometimes it needs to be recontextualized
Proposal: add a new switch similar to -mv in syntax, that renames a module in its mangling. Benefit: it allows for multiple instances of a module be in a process,...
From https://forum.dlang.org/post/[email protected]: ```d import std; mixin template f(int function(int) F){} mixin template f(void function(int) F){unittest{"void".writeln;}} //mixin f!((_){}); //FAILS mixin template g(void function(int) F){unittest{"void".writeln;}} mixin template g(int function(int) F){} mixin g!((_){});...
Adds the complete templated implementation to newaa.d, keeping binary compatibility with rt/aaa.d for now. This should help inferring proper function attributes on the operations, aswell as using regular constructors/copy operation...
Tested with DMD 2.109.1n dont forget to enable the assertions. ## code ```d module runnable; void test() { uint p0 = 8; uint p1 = 9; static void f1(uint c0...
tested on alpine linux x86 and armv7 code shrink suggestions welcome! I am not that familiar with dlang
Running an enum type through core.traits.substInout converts it to its base type: ```D import core.internal.traits : substInout, Unqual; struct S { int x; } struct T { int x; alias...