[fpc-pascal] How choose units names?

Marcos Douglas md at delfire.net
Wed Jul 21 21:55:14 CEST 2010


How choose units names?

I was thinking what are the best names to my units to not to conflict
with the units of the FPC, Lazarus, and others frameworks or libs.
e.g. fpc\2.5.1\packages\fcl-web\src\base\webutil.pp

There are a great chance this unit name exists in some libs or
frameworks, on the web.
Even I would take this name, isn't?

On the sources of FPC, exists a lot of units with a bit name...
e.g. fpc\2.5.1\packages\ggi\src\*.pp  (ggi.pp | gii.pp | ggi2d.pp)

All these names could be a name of variable...

How you have no conflict with names of the units? Do you use some
prefix in your units as "uwebutils.pp", "mywebutils.pp",
"xyzWebUtils.pp", etc.


Thanks,
MD



More information about the fpc-pascal mailing list