Hi xwb,
Thank you for your prompt reply.
I am actually coding in Fortran 2003.
In your Get() function you declare a "empl" variable, is it a module variable or a dummy argument of the function?
In C++ it is possible to declare a static self-referential class member e.g.
class Employee
{
protected:
int n;
static Employee* empl;
public:
Employee() {}
static void Set(Employee& e);
}
How do I emulate this in Fortran? One way is to declare a global module variable but this is not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.