ariovistus / pyd

Interoperability between Python and D
MIT License
159 stars 32 forks source link

Deprecation: returning &this escapes a reference to parameter this #138

Closed andre2007 closed 4 years ago

andre2007 commented 4 years ago

With DMD 2.094.0 I am receiving this deprecation warning:

Deprecation: returning &this escapes a reference to parameter this

pyd 0.13.1+commit.3.g60f6669: building configuration "python38"...
..\..\..\AppData\Local\dub\packages\pyd-60f6669af6d4f963af4b4b7a4fcc860c045980ed\pyd\infrastructure\pyd\make_object.d(1175,16): Deprecation: returning &this escapes a reference to parameter this   
..\..\..\AppData\Local\dub\packages\pyd-60f6669af6d4f963af4b4b7a4fcc860c045980ed\pyd\infrastructure\pyd\make_object.d(1175,16):        perhaps annotate the parameter with return
andre2007 commented 4 years ago

Closing as duplicate of https://github.com/ariovistus/pyd/issues/134