The JCL library have an conditional define UNITVERSIONING. I don't know why this option exists and don't know how to use this. I know that there are a unit called JclUnitVersioning.pas, but can't find a use.
Where to use this in a real word project?
It supports the
JclUnitVersioning
unit, which exposes the constants like these in a more coherent way:An old version of the
JclUnitVersioning
unit is here]1 and gives you a rough idea how it works: the unit has a globalfunction GetUnitVersioning: TUnitVersioning;
which gives you back the version information for all units that support UNITVERSIONING.From there you can enumerate them, and ask for details.
This is very handy for instance when you want to know which exact version of a unit gets linked into your .EXE.
--jeroen