Meaning of Scoped! ??

Ron Tarrant rontarrant at gmail.com
Tue Jul 30 12:15:23 UTC 2019


On Tuesday, 30 July 2019 at 09:46:07 UTC, Andrea Fontana wrote:

> Looking at its source code, it seems it's a way to force the 
> call of "destroy" method of wrapped object (Context in your 
> case) when the struct goes out of its scope (and d-tor is 
> called)
>
> Andrea

Thanks, Andrea (and rikki). I actually learned this a while back 
(even wrote about it in a blog post) but I've noticed my memory 
is playing tricks on me lately.

In fact, don't be surprised if I ask this same question (or a 
close variation of it) next month. (sigh)


More information about the Digitalmars-d-learn mailing list