why it said no identifier for declarator …

Jesse Phillips via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 4 08:47:17 PDT 2014


I take it the output looks something like this:

     struct S {
         int a;
     }

     S s;
     s.a = 3;

     void main() {
     }

Hope this clears up this next problem. Module scope doesn't get 
to utilize a variable, it can only initialize at compile-time.


More information about the Digitalmars-d-learn mailing list