sociomantic-tsunami / swarm

Asynchronous client/node framework library
Boost Software License 1.0
14 stars 26 forks source link

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

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).

Fixes deprecation messages which occur with dmd2.092 beta.