Unused druntime code: Barrier, ReadWriteMutex, Condition

Nick Treleaven nick at geany.org
Sat Jun 20 11:45:53 UTC 2026


On Wednesday, 17 June 2026 at 19:19:41 UTC, Nick Treleaven wrote:
> On Tuesday, 16 June 2026 at 10:41:00 UTC, Richard (Rikki) 
> Andrew Cattermole wrote:
>> ```d
>> version(NoBarrier) {
>> 	@disable
>> 	class Barrier {}
>> } else {
>> ```
>
> `@disable` doesn't work with types. You can do `@disable 
> new();` though.
>
> The spec should be clearer:

Filed issue & PR:
https://github.com/dlang/dmd/issues/23289


More information about the Digitalmars-d mailing list