Public & Private in Types

BlitzMax Forums/BlitzMax Programming/Public & Private in 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.

Hey, I'm having trouble with Public and Private.

Here is my type basically:

-Type Simulation
- Public
- Global current:simulation
- Private
- Field projectiles:tlist

- Public
- Method run()

- Private
- Method mainLoop()
-End Type



I get Syntax error in user defined type definition on the first Public, also I get that error when i try starting the line with public.