[fpc-pascal] Comparing version numbers
A.J. Venter
aj at getopenlab.com
Sat Jun 3 02:48:07 CEST 2006
> Your code can't work with these ones, 4.1.15 and 4.12.1 because you
> only pad the 3rd (15 and 1), you need to pad each part of the
> version, my pseudocode out 4.1[space].15 and 4.12.1[space]. You can
> call your function with the 4,4; again with 12,1 utnil you get a
> result.... but you need a ternary boolean, as 4,4 generates an
> invalid result state.
Mmm, good point, I didn't think of that, but it's fairly easy to expand now (I
am much better at reading real code than pseudocode)
A.J.
--
"there's nothing as inspirational for a hacker as a cat obscuring a bug
by sitting in front of the monitor" - Boudewijn Rempt
A.J. Venter
Chief Software Architect
OpenLab International
www.getopenlab.com
www.silentcoder.co.za
+27 82 726 5103
More information about the fpc-pascal
mailing list