suggestion of implicit new

Rémy Mouëza Rémy_member at pathlink.com
Fri Jun 2 11:49:40 PDT 2006


In article <20060601132500.408f82ef.hamaji at nii.ac.jp>, shinichiro.h says...
>
>> Well, it is ambiguous if the class contains a static opCall, but then 
>> again, I'd suggest that syntax instead of the current 'auto' storage 
>> modifier.
>
>Oops! I missed the static opCall. Sorry.
>
>------------------
> shinichiro.h

Some people have suggested to use a 'var' keyword as in Javascript or the
forthcoming C# 3.0 to express type inference.
auto c = new C (); 
would become:
var c = new C ();

and there is no more ambiguity with the static opCall. 
Personnaly I would have prefer a keyword like 'let' as in OCaml that as a strong
and inferred type system.





More information about the Digitalmars-d mailing list