At compile time

bearophile bearophileHUGS at lycos.com
Wed Aug 5 03:56:33 PDT 2009


Jarrett Billingsley:
>C++ has static initialization that occurs before main() too.  It's just.. hidden.<

I see. I have to learn more about C++. Thank you.

------------------
Lars T. Kyllingstad:

>This is good news! The restrictions you are referring to, are they any of the ones documented here: http://www.digitalmars.com/d/2.0/function.html#interpretation <

That list has a point regarding what I was trying to do:
>4. the function may not be a non-static member, i.e. it may not have a this pointer<
It's true regarding stucts used as values too, and not just classes...

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list