Re: Private variables question



Phill Harvey-Smith wrote:

This is more from a mater of interest than any technical reason, but
there seems to be a lot of code around where the private variables
are called FSomething e.g.

What I guess i'm asking is why prefix it with 'F' ?

F is for Field (of object).

I have been tending to use 'Pr' in my own code for Private,

Way too much typing :)

I guess the compiler does not care,

Nope.

just wondered why it seemed to be a convention ?

CodeGear does so in all their sources. It helps to distinguish between
properties and the (private) fields of a class. Like T for
types/classes and I for Interfaces.

--
Pieter
.