Go to the Next or Previous section, the Detailed Contents, or the Amiga E Encyclopedia.


6.1 Identifiers

An identifier is a word which the compiler must interpret rather than treating literally. For instance, a variable is an identifier, as is a keyword (e.g., IF), but anything in a string is not (e.g., fred in 'fred and wilma' is not an identifier). Identifiers can be made up of upper- or lower-case letters, numbers and underscores (the `_' character). There are only two constraints:

  1. The first character cannot be a number (this would cause confusion with numeric constants).
  2. The case of the first few characters of identifiers is significant.

For keywords (e.g., ENDPROC), constants (e.g., TRUE) and assembly mnemonics (e.g., MOVE.L) the first two characters must both be uppercase. For E built-in or Amiga system procedures/functions the first character must be uppercase and the second must be lowercase. For all other identifiers (i.e., local, global and procedure parameter variables, object names and element names, procedure names and code labels) the first character must be lowercase.

Apart from these constraints you are free to write identifiers how you like, although it's arguably more tasteful to use all lowercase for variables and all uppercase for keywords and constants.


Go to the Next or Previous section, the Detailed Contents, or the Amiga E Encyclopedia.