dmd
dmd copied to clipboard
dmd D Programming Language compiler
These are driver-specific, rather than language tuning.
This code should fail even when just checking syntax (`-o-`), not at the codegen stage.
This needs to happen for a sane generic programming. Declaring `tupleof`, `stringof`, `min`, `max` and maybe others as members should also be deprecated in the future.
Signed-off-by: Luís Ferreira --- Previously reverted https://github.com/dlang/dmd/pull/13734 by https://github.com/dlang/dmd/pull/13742 . CC @ibuclaw .
Naming `isSame2` is obviously a temporary placeholder for the real name that is to be decided in some kind of democratic process. This commit is just an implementation of isSame2...
I've definitely missed some things but this is enough to be reviewed (i.e. non-draft). I haven't decided what to do with the `union` usage yet. Hypothetically one could use the...
Timon's idea on how to fix this - disallow constructors for stack allocation for operator new unless the constructor is `scope`.
Blocked by: * [x] https://github.com/dlang/phobos/pull/8481 * [x] https://github.com/atilaneves/automem/pull/69 * [ ] https://github.com/libmir/mir-algorithm/pull/464