dmd
dmd copied to clipboard
dmd D Programming Language compiler
The idea is that if a template recursively calls itself, the only instance that needs to be cached in `TemplateDeclaration.instances` is the first one.
…out in contract with class method with contract
…eads to missing symbol
…y can in @system code Another problem unearthed by https://github.com/dlang/dmd/pull/12409 The fix is to tell the backend if a function is @safe
…r precision As @ibuclaw pointed out, this can be forced already with core.math.toPrec, but I suspect that making enum, const, and static all produce the same value should be unsurprising.
Currently, instances of TypeInfo_Struct are generated by a complex and tedious process inside the compiler. This change experiments with using a template in druntime, Object.TypeInfoStructGeneric instead, to generate it. The...
…nalysis Users should use `static if` if they need compile time conditional compilation.
Signed-off-by: Luís Ferreira --- I made this critical, but I don't know the definition of critical/major, so please clarify and change accordingly, if necessary. For context, this behaviour is being...