I think it's fine to have a global config instance. Alternatively you can pass the config to both the seismoDownlead and MySqlWhatever classes.

// there ist enforce(cond, msg) for this in std.exception/std.conv, dunno. if (!exists(confpath)) throw new Exception("ERROR: config.ini do not exists");
// it becomes
enforce(exists(confpath), "ERROR: config.ini does not exist");

Not fully understand. How I need to declare global config instance?

void main()
{
        
}

this()
{
        auto parseconfig = new parseConfig();
}

But how this() will be called in nothing in main?

And I can't understand how to pass the config to both the seismoDownlead and MySqlWhatever classes.

I know how to pass, but I do not understand how to do it with current situation with scopes.

Here is current version of my code. I am not asking to do work for me, but could you show what and where I should move http://www.everfall.com/paste/id.php?oscnkeq740ue

?

Reply via email to