Welcome, Guest. Please login or register.

Author Topic: Naming conventions and type definition  (Read 1829 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Naming conventions and type definition
« on: May 13, 2004, 02:30:22 PM »
I use the UML style (as used in java).

Capital letter for the beginning of each word in the name of a class or struct, eg: "MyClassName".

All class members have lowercase first word then upper for every following one, eg "myMethodName(), myVariable"

All constants are uppercase.

All elemental types (and in C/C++ typedefs thereof) are lowercase, eg "int32, uint32".

AmigaOS has its own standards for stuff, but my code always sits a layer above so I never see it outside of some implementation.
int p; // A