How to create instance of class that get data from 2 another instance?
Suliman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jan 2 09:04:10 PST 2015
class parseConfig
{
string dbname;
string dbuser;
string dbpass;
string dbhost;
string dbport;
uint status;
this()
{
auto checkLinkCode(string link) // we need to check all links to
be sure if they are alive
{
....
return status;
}
.............
if (checkLinkCode(emsc_csem) == 200)
{
auto seismodownload = new seismoDownload(emsc_csem, this);
//here
seismodownload.parse();
}
}
}
I know that in ะก# I can pass to function, and this would be point
of class from where it's call (Here is parseConfig). Is it's
possible to do something similar in D?
More information about the Digitalmars-d-learn
mailing list