Functions inside functions

BlitzMax Forums/BlitzMax Programming/Functions inside functions

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.

Are the scopes of those in-function types, globals, and consts limited to within the function, too? That is, if you put a "Print maxspeed" after the "drive" call do you get an undefined error due to the Strict? (I don't yet have Max or I'd test it myself.)

If so, that'd be pretty sweet. You could just stick "Function/End Function"s around previously stand-alone programs and they could happily co-exist even if they use the same type, global, and const names.