ldc-developers / ldc

The LLVM-based D Compiler.
http://wiki.dlang.org/LDC
Other
1.21k stars 261 forks source link

Implement dual-context (introduced in DMD 2.087) #3125

Open kinke opened 5 years ago

kinke commented 5 years ago

I.e., either port the codegen stuff from dlang/dmd#9282, or implement it differently in the frontend to require less codegen changes (Iain isn't happy about this at all: dlang/dmd#9702).

Then revert https://github.com/ldc-developers/dmd-testsuite/commit/1c92bc3c5b02b2d624be7db1f7e8cd5a08232e67.

PetarKirov commented 5 years ago

Implementing this would be huge for me. 2-3 years ago I hit a hard block with one of my libraries and I couldn't continue development because of that limitation. (And also because dmd had a buggy implementation of the smaller "supported" subset of this feature.)

kinke commented 3 years ago

This was deprecated in v2.096 (https://dlang.org/changelog/2.096.0.html#deprecate_dualcontext).