[fpc-devel] Local variable names and colision with attributes/properties names

Graeme Geldenhuys graeme at geldenhuys.co.uk
Thu Sep 27 17:26:28 CEST 2012

On 2012-09-27 15:48, Marcos Douglas wrote:
> problem, IMHO, is that I can't choose when we talk about local
> variables.

Just like there is a coding style (not language rule) that classes start
with the "T" prefix, and class field variable start with a "F" prefix, I
applied that same coding style to parameters and local variables.

"L" prefix for local variable - though I prefer the lowercase 'l' for
this for some add reason. The exception being counter variables like x,
y, i, j etc.

"A" prefix for parameter variables.

Using this simple coding style makes things even more logical and less
confusing, even though I use mode objfpc for 90% of my code.

  - Graeme -

More information about the fpc-devel mailing list