Functions as Types?

Blitz3D Forums/Blitz3D Beginners Area/Functions as Types?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.


troop.t_troop

has the same effect of:

global troop.t_troop



I don't think so. :)
If you want a type pointer (or any other type of variable) to be accessible inside functions, you have to specifically declare them as Global, in the main code.

MAX711, you're OK - local function variables are destroyed on exiting the function and so are not accessible outside of functions.