public and private, when would you use which

BlitzMax Forums/BlitzMax Beginners Area/public and private, when would you use which

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.

private functions are functions that are used only internally to the module and shouldn't be messed around with because you could easily do something wrong.

public is the default for functions and means that they can be accessed - it cancels a previous private decleration for the functions following it.

These might also apply to types and globals but i'm not sure.