Naming conventions - mschlegel81/mnh GitHub Wiki

Naming conventions

I mainly use objects, not classes. The rationale is that I wanted better control over the kind of variable - is it stored on the heap or on the stack.

Records and Object types are usually prefixed with a T_ to signify the type. The related pointers are declared with as prefix P_ as P_typeName=^T_typeName Constants are admittedly mixed. Some Constants use a prefix C_, others are written in all-uppercase with underscores.

The spelling of Pascal keywords is mixed. My personal preference is to write some keywords in lower case (begin, end, if, then, else, ...) and others in uppercase (UNIT, INTERFACE, USES, TYPE, PROCEDURE, FUNCTION, CONST, VAR ...)