Two interpretations

JG JG at somewhere.com
Fri Jun 11 15:00:00 UTC 2021


Is it specified somewhere which way the following program will be 
interpreted?

     import std;

     struct A
     {
         int x=17;
     }

     int x(A a)
     {
         return 100*a.x;
     }

     void main()
     {
         A a;
        writeln(a.x);
     }


More information about the Digitalmars-d-learn mailing list