sociomantic-tsunami / dlsproto

Distributed Log Store protocol definition, client, fake node, and tests
Boost Software License 1.0
3 stars 18 forks source link

Add annotations for fns which `return &this` #119

Closed don-clugston-sociomantic closed 4 years ago

don-clugston-sociomantic commented 4 years ago

From dmd2.092 onwards, functions which use the return &this method chaining idiom, must be marked with the return annotation. This makes it impossible for @safe code to have references to destructed stack objects (see DIP25).

don-clugston-sociomantic commented 4 years ago

Please also check the dmqproto one so I can merge it as well.