[Issue 13116] Should not be able to return ref to 'this'

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 14 07:41:47 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13116

--- Comment #3 from hsteoh at quickfur.ath.cx ---
Note that it's OK to do this with structs because the address of the original
struct is returned, not the address of the `this` implicit variable.

--


More information about the Digitalmars-d-bugs mailing list