Add := digraph to D

kenji hara k.hara.pg at gmail.com
Thu Jun 21 02:48:10 PDT 2012


2012/6/21 Mehrdad <wfunction at hotmail.com>:
> On Thursday, 21 June 2012 at 05:54:32 UTC, Lars T. Kyllingstad wrote:
>>
>> No. Many don't realise this, but "auto" doesn't  actually stand for
>> "automatic type inference". It is a storage class
>>
>> Lars
>
>
>
> auto int a = 5;
> // Error: variable a storage class 'auto' has no effect if type is not
> inferred, did you mean 'scope'?
>
>
>
> I don't understand what kind of a "storage class" this is.
>
> You would be correct in C, but is it really a 'storage class' in D?
>
> (Sure it's called that, but it doesn't seem to behave like one...)

The word 'storage class' seems to me that comes from C language, but I
think it is almost incorrect word in current D.

Different from C, it can qualify almost of D declarations - variable,
function, template, and class/struct declarations.

I think that to invent new/better word for that element of the
language is important work of the community.

Kenji Hara


More information about the Digitalmars-d mailing list