D needs first-class lifetimes before it can get ownership and borrowing

Dennis dkorpel at gmail.com
Sat Aug 10 16:51:09 UTC 2019


On Saturday, 10 August 2019 at 16:48:26 UTC, Dennis wrote:
> I don't know why it compiles without scope though.

I think it's because you didn't declare it as `scope SmartPtr s;` 
and `reset` is wrongly @trusted.


More information about the Digitalmars-d mailing list