How to create instance of class that get data from 2 another instance?

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 1 15:13:03 PST 2015


On Thursday, 1 January 2015 at 22:15:52 UTC, Suliman wrote:
> I have instance of class, that need data from 2 another 
> classes. So I decided that I need to create it only after I get 
> the data from both instance.
>
> auto mysql = new MySQL(parseconfig, seismoDownload); // the 
> problem is here! (LOC 170)
>
> mysql need settings form parseconfig, and link from instance of 
> seismoDownload class.
>
> But I am getting error: undefined identifier parseconfig, did 
> you mean class p
> arseConfig?
>
> What I am doing wrong?
>
> http://www.everfall.com/paste/id.php?iwh4qdcqv6zi

Well, there's no `parseconfig` there. Do you expect the 
`parseconfig` from line 30 or line 193 to be available in line 
170?


More information about the Digitalmars-d-learn mailing list