dmd
dmd copied to clipboard
dmd D Programming Language compiler
Types (e.g. TypeAArray) don't have a location attached to them, so instead of trying to use that we instead use the error location from the general template parameters. @maxhaton The...
UnionDeclaration should have it's own visit method because one might want to extend the transitive visitor class and override the visit method of StructDeclaration, but keep the default logic for...
The preview flag will still work but will print a deprecation message
Spec PR: https://github.com/dlang/dlang.org/pull/3410
Error if a _TemplateThisParameter_ is declared when there's no parent aggregate type ~~or template (it could be for a mixin)~~.
```d int countWins(const uint[2] arr) { uint[2] copy = arr; copy[0] = 0; return 0; } enum force = countWins([4, 8]); ``` When passing `[4, 8]` to `countWins` the interpreter...
Signed-off-by: Luís Ferreira --- Related to https://github.com/dlang/dmd/pull/13765 . This is already being tested, but not triggered, since the CI test suite is not being run with a sanitiser.
... value / alias parameters. The introduced copies ensure that the initialized parameters of the instantiation do not share objects with the template declaration. Previously, sharing could occur in the...