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 thread-safe.
Any help is welcomed and appreciated.
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 thread-safe.
Any help is welcomed and appreciated.