A thought about garbage collection

jerro a at a.com
Wed Dec 19 16:56:29 PST 2012


> In your D code what's the percentage of class instantiations 
> done with scoped()?
>
> Bye,
> bearophile

I don't think I've ever actually used it (other than just trying 
it). When I use classes, I usually want them to be heap 
allocated. But if you need a class instance on the stack, 
scoped() looks useful. Are there some issues with it that I'm not 
aware of?


More information about the Digitalmars-d mailing list