auto used as scope
    Martin Persenius 
    martin at persenius.net
       
    Sat Apr 21 08:02:44 PDT 2007
    
    
  
Manfred Nowak Wrote:
> Martin Persenius wrote
> 
> >         auto Foo = new Foo();
> 
> You have redefined Foo to be a variable name.
> 
> http://www.digitalmars.com/webnews/newsgroups.php?
> art_group=digitalmars.D&article_id=43970
> 
> -manfred
Right, thank you. But what is the rationale behind making the first case call the dtor as if "auto [classname] [variablename]" was using 'scope'? The others, including the quoted example, do not, This is inconsistent and non-intuitive. Just want to understand.
    
    
More information about the Digitalmars-d
mailing list