[fpc-devel] Interface to compressed files and archives

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Fri Dec 31 15:24:08 CET 2004



On Fri, 31 Dec 2004, DrDiettrich wrote:

> Michael.VanCanneyt at Wisa.be wrote:
> 
> > Naming a unit with 'u' standard does not seem useful to me, but this is
> > a matter of taste.
> ...
> > All other files are assumed to be units.
> > (projects/packages have distinct extensions anyway)
> 
> No problem at the directory level, but how to distinguish names of
> units, types, variables etc. in qualified references?

- Types should always be prepended with T. 
- One should avoid the use of globally visible variables. 
  They are inherently evil.  Specially when doing multithread programming.

> E.g.: gzip.xyz, is this based on a gzip unit or a gzip variable or...

Does this matter to you ? 

Normally one never uses a fully qualified identifier. 
Only when a possible name conflict exists, which 
- Should be very rare, and avoided in the first place.
- In such cases it will be obvious from the context.

Michael.




More information about the fpc-devel mailing list