Q: (dmd 1.x) Difference between 'static const ...' and 'const ...' in templates

Myron Alexander someone at somewhere.com
Mon Jun 25 15:42:09 PDT 2007


Hello.

For DMD 1.x, let's say I have the following template:

> template structname (S) {
>    static const string structname = S.stringof[0..$-1];
> }

Is there any difference between 'static const ...' and 'const ...'?

Thanks.

Myron.


More information about the Digitalmars-d-learn mailing list