Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Importing problems
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Raknarg




PostPosted: Fri May 18, 2012 9:20 am   Post subject: Importing problems

I'm having a problem with importing and units and such, I was hoping someone wcould hellp me. I have a picture of what I'm doing, i thought it'd be easier.

So I'm trying to import units together, and it won't let me, it says that importing is incompatible with units or something like that. i figure its a syntax problem, but idk what.

Note: Just click onthe image, it will bring a new window with the right resolution



problem.bmp
 Description:
My importing flow is shown by this paint image
 Filesize:  658.8 KB
 Viewed:  59 Time(s)

problem.bmp


Sponsor
Sponsor
Sponsor
sponsor
mirhagk




PostPosted: Fri May 18, 2012 9:33 am   Post subject: RE:Importing problems

Is there a reason Ship class needs the initialize module? And a reason the initialize module needs Ship_Stats. Seems to me that only one of those dependencies should be required since Ship inherits from Ship_Stats.
Zren




PostPosted: Fri May 18, 2012 10:03 am   Post subject: RE:Importing problems

You can't extend/inherit a class from another module/unit. Though that doesn't really sound like what your problem is.
Raknarg




PostPosted: Fri May 18, 2012 11:46 am   Post subject: RE:Importing problems

Nevermind guys, it was a syntax error, it works fine.

And mirhagk, it was because I was importing ship into initialize and initialize into ship, so i thought that might make a problem. My real problem was just importing units into other units, but it works fine now.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: