dlang-community / D-YAML

YAML parser and emitter for the D programming language
https://dlang-community.github.io/D-YAML/
Boost Software License 1.0
119 stars 37 forks source link

Fix compilation errors with -dip1000 #184

Closed Herringway closed 2 years ago

Herringway commented 6 years ago

Some are simple - scope on some parameters, etc.

Others are not. Something weird is going on with -dip1000 and dyaml.emitter - the delegates created there appear to gain random attributes (const delegates? nothrow delegates that call enforce() without issue? what...?) and require explicit casting to their real type to work as expected.

RedBlackTree is also unusable @safely when -dip1000 is specified.

Herringway commented 6 years ago

Update - the entire batch of emitter errors go away if const is removed from dyaml.emitter.Emitter.expectNothing. what...?

Geod24 commented 3 years ago

Found this while (quickly) looking into this issue.