A few inconsistentcies left

Hasan Aljudy hasan.aljudy at gmail.com
Thu May 25 09:35:11 PDT 2006


Charlie wrote:
> 2)  auto auto foo = new Class;  The current double meaning of auto won't 
>  allow for both a RAII and type-deduced variable declaration.  I think 
> every other language use's 'var' or similar ( var gets my vote, used in 
> php, javascript, C#-3.0) .  The current error is 'redundant storage 
> class 'auto''.

auto can mean many many things!!

I prefer to get rid of auto all together.
for automatic type inference ==> use 'var'
for RAII, hmm, maybe use something like 'raii'

# raii var foo = new Foo;





More information about the Digitalmars-d mailing list