How to turn this C++ into D?
    Ali Çehreli via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Nov  5 10:18:17 PST 2014
    
    
  
On 11/05/2014 10:12 AM, Adam D. Ruppe wrote:
 > On Wednesday, 5 November 2014 at 18:10:38 UTC, Ali Çehreli wrote:
 >> If so, then that push_back would be adding an incomplete object to the
 >> list.
 >
 > scope(success)?
I really like that! :)
But still not for this case because in addition to the problem with the 
destruction order, I would like to feel free to remove unused objects 
like the following without worrying about side-effects:
// C++ code
void bar()
{
     Foo seemingly_unused_here();
     // ...
}
Ali
    
    
More information about the Digitalmars-d-learn
mailing list