in reply to Re: forcing numeric context
in thread forcing numeric context
This is a version tuple for a C++ DLLs and EXEs. In one place, it is omitted if the "patch" value is not used, and that is the way it appears in the GUI. In another place, I need all 4 numbers separated with commas, regardless.
This is a program that takes release information via a nice user-friendly form, and updates the directory tree, changing all the places the version appears in files. If the program wasn't already using an empty string here (other code formats it different ways in different uses), I'd probably just use numbers consistantly.
So the short answer: maintainance often contradicts good design.
—John
|
|---|