Voldemort type "this" pointer

realhet real_het at hotmail.com
Wed Apr 21 15:37:57 UTC 2021


On Wednesday, 21 April 2021 at 10:47:08 UTC, Mike Parker wrote:
> On Wednesday, 21 April 2021 at 10:00:51 UTC, realhet wrote:
>
>> It has access to the context of its enclosing scope (via an 
>> added hidden field).

Thanks!

So it is unsafe to return a non-static nested struct from a 
function. But it is useful to pass it forward into other 
functions.


More information about the Digitalmars-d-learn mailing list