Definitive list of storage classes

Daniel Murphy yebblies at nospamgmail.com
Sat Apr 14 08:49:09 PDT 2012


"Jonathan M Davis" <jmdavisProg at gmx.com> wrote in message 
news:mailman.1707.1334377994.4860.digitalmars-d at puremagic.com...
> I'd like to know which modifiers are considered to be storage classes. The 
> term
> seems to be used on a lot more than actually qualifies (including using 
> the
> term for the type qualfiers: const, immutable, and shared), and even the
> documentation uses it on stuff that I wouldn't have thought would be 
> considered
> storage classes, because they have no effect on how variables are stored 
> or
> linked (e.g. synchronized).
>
> Someone asked about it on stackoverflow, and my explanation is not as good 
> as
> it should be simply because I can't find a definitive list anywhere:
>
> http://stackoverflow.com/questions/10150510/what-are-the-storage-classes-in-d
>
> - Jonathan M Davis

There's always the list in 'declaration.h'.

If I had to guess I'd say 'storage class' meant something much more specific 
in C than it does in D, where it seems to mean properties of a declaration 
that do not affect the type. 




More information about the Digitalmars-d mailing list