Computer Science Canada

problems having 2 import files

Author:  Jonny Tight Lips [ Sat Oct 16, 2004 2:21 pm ]
Post subject:  problems having 2 import files

Ok in my program I have to import files. One is Dansprites and the other is GUI but I'm getting an error
code:

import GUI
import "DanSprite.tu"

the error says "syntax error at import" and highlights the import right befor "DanSprite.tu"

Is it just not possible to have 2 import files or am I doing something wrong?

Author:  beard0 [ Sat Oct 16, 2004 3:46 pm ]
Post subject: 

You can import two things, you're just using the wrong syntax. Turing only allows one import statement at the begining of the program:
code:
import GUI, "DanSprite.tu"

is the proper syntax!

Enjoy!

Author:  Jonny Tight Lips [ Sat Oct 16, 2004 9:16 pm ]
Post subject: 

Awwww thats the key. Stupid turing. Thanks for your help.


: