Compiling - Ignore un-instanced types?

BlitzMax Forums/BlitzMax Programming/Compiling - Ignore un-instanced types?

Morbius(Posted 2006) [#1]
Is there a way to ignore un-instanced types at compile time? For example, I have some code that is instanciating a bunch of objects (Rooms) Each room contains properties (N,S,E,W) that are also Rooms. But the compiler stops because as I'm loading up the types it encounters fields which name objects that haven't been created yet.

How do you handle this?

Thanks

Mike


Perturbatio(Posted 2006) [#2]
You can either comment out the lines or create dummy types, that's about it.


H&K(Posted 2006) [#3]
No, you have to at the very least have "Templated" the new object types.

(Or rem the fields I suppose)

Edit: Beaten to it by 14 seconds. ho um


Paposo(Posted 2006) [#4]
Please morbius, put example code in a post.

Bye
Ramon


H&K(Posted 2006) [#5]
@paposo

put example code in a post

Why? It makes no difference. If he reffers to an type, that type has to be deffined. It doent need a code example


Paposo(Posted 2006) [#6]
Sorry H&K i not understand

Morbius write:
I have some code that is instanciating a bunch of objects (Rooms) Each room contains properties (N,S,E,W) that are also Rooms. But the compiler stops because as I'm loading up the types it encounters fields which name objects that haven't been created yet.

I test a type like morbius explain and it compile perfect

Probabily the problem is my bad english

Bye
paposo