One of the great features of Object Pascal is the inclusion of sets in the language.Other languages have added libraries in support of sets, but Pascal remains unique in having always supported them. Sets are often useful in combination with enumerations. Used together, they provide a very readable approach to handling things such as user…
Category: Utility Routines
Those pesky details…
The little things in code are easily overlooked, and can be the source of problems which are difficult to diagnose. Consider the conversion of a string to a number: 1 d := StrToFloat(NumericString); What could go wrong? Well, many things, actually. In writing this, you no doubt were thinking of the problem at hand, rather…