Thats the def of cyclic import FD, because TShip.bmx would import TMissile and vice versa.
Sushimasta: Such stuff can't be solved with "importing". Thats the simple reason modern languages dropped the idea of importing stuff, the use cluster the use or don't use.
That would as well be what I would suggest you to use.
While it sounds obscure and nonsense at first, its quite simple and powerfull:
Create a more or less empty bmx file, that includes different stuff that relys on each other.
That will be one of your "clusters"
In your app you can now import that cluster.
If Quick compile is active, the cluster will only need to be recompiled if one of its own files has changed, otherwise not, which makes it a great thing on larger project!
I often use these technique to encapsulate related stuff into a single file, because the usage of include raises the compile time drastically.
Sushimasta: Such stuff can't be solved with "importing". Thats the simple reason modern languages dropped the idea of importing stuff, the use cluster the use or don't use.
That would as well be what I would suggest you to use.
While it sounds obscure and nonsense at first, its quite simple and powerfull:
Create a more or less empty bmx file, that includes different stuff that relys on each other.
That will be one of your "clusters"
In your app you can now import that cluster.
If Quick compile is active, the cluster will only need to be recompiled if one of its own files has changed, otherwise not, which makes it a great thing on larger project!
I often use these technique to encapsulate related stuff into a single file, because the usage of include raises the compile time drastically.