Struct that destroys its original handle on copy-by-value

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 31 11:48:32 PDT 2015


On Friday, 31 July 2015 at 18:13:04 UTC, Ali Çehreli wrote:
> To make sure, I didn't mean that I know of structs in Phobos 
> that behave that way. Although, it would be interesting to 
> identify them. :)
>
> Ali

Things like Unique, Scoped, RefCounted - pretty much everything 
which wraps reference type with additional semantics.


More information about the Digitalmars-d-learn mailing list