A few questions
Blitz3D Forums/Blitz3D Programming/A few questions
| ||
Okay, I have a two questions so I figure I might aswell ask them both at once. I'd be grateful for any help. 1) How can I put arrays as a field in a type. I could probably just do this by trial and error, except that I want to implement it for my game as a reorganizing tool, however if I can't do it or I am doing it wrong I'll waste a lot of time. So if anyone knows how to do this that would be a huge help. 2) Can I overload functions? Again, I could just 'try' this one out but my if I reorganized my game and found out it didn't work it would make a big mess. Thanks for reading my post. |
| ||
1) The arrays in types can only be one dimensional. Read DIM in the Command Reference for more. 2) No, I do not you can |
| ||
There is a difference between ordinary arrays and blitz arrays. (Blitz arrays are the arrays used in types, or anywhere else actually, done with square brackets) http://www.blitzcoder.com/cgi-bin/code/code_showentry.pl?id=thechange09052002191420&comments=no http://www.blitzcoder.com/cgi-bin/code/code_showentry.pl?id=ashcroftman07192002114143&comments=no |
| ||
A proper title for this would have been "arrays in types?" or something similar... a NULL title like "a few questions..." tells no one anything and is bad form. -RZ |
| ||
Sorry, the reason I put 'A few questions' is because I had more than one that were completely unrelated. I thought I had more but I guess I had just the two. Thanks for help with the arrays. And I suppose I won't be overloading any functions... |
| ||
A recent post by Koriolis led me to this on Blitzcoder: Simple function overloading Not true overloading in a C++ sense, but probably as good as it gets in Blitz |