IMPORTS

BlitzMax Forums/BlitzMax Programming/IMPORTS

On the topic of Strictness I think even having Strict is a bad idea. The language should just be what it is ( preferably with a strict syntax where there is no ambiguity ), but having different levels of syntax strictness is crazy.

On the topic of imports, I have actually rethought what I wanted. I would actually prefer a grouping concept such as a module that acts like a package in Java. So you have something like this:

Package rds.util.Hashtable

Import brl.blitz
...

Type Hashtable
    ...
EndType


Because what you want is everything available in your project to be available to the rest of a project because it WOULD be stupid to have a TShip in one project reference and TMissile in another project. But in my game, these classes need to reference eachother. So they would be put in the same package and any file would automaticaly know about anything else in the package. So that eliminates the need for cyclic Imports and I think then everyone is happy. Because in the real world, classes aren't always going to be standalone. They need to work together. So it would seem counter-intuitive to only be able to have classes work together if they are all in the same long file or included messily together. Ya see what I mean I hope?