A while ago I finished the highly recommended "Working Effectively with Legacy Code" by Michael Feathers. In a final confirmation of my increasing senility I am absolutely convinced seeing a code sample in that book where he defined a struct
that included a version number as one of its fields.
However, I am completely unable to find again where I may have seen this code sample. Does anyone know if it was indeed in that book?
Otherwise, is it generally a good idea to include a version number in a struct
? How/when might it be used?