yay, using private/protected/public in class-definition makes sense now^^.

Compiler uses accesspecifier now(and their restrictions).

so:

Code:
class CFoo()
  private:
  int FFoo;
  public
  int ForAll;
};



truly influences compiler now. FFoo can only be accessed when inside a method of this class. Public is accessible to all. Proteced is accessible to the same class and classes derived from it.

If you try to acces a member without the correct permission(i.e. accessing private, while only allowed accesing public) you get an error.

Greets
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development