Mirsad Todorovac wrote:
On Sun, 8 Jun 2003, Frank Heckenbach wrote:
... snip ...
BTW, since you only access the array in the range '0' .. 'z', you only need to declare this part and can omit the lots of `-1' entries. Also, char indices are perfectly alright, so you don't have to use `Ord' here.
Thanks for reminding me. I chose to remove that if a in ['0'..'z'] ...
That is still a non-portable statement. There is no guarantee that '0' is less than 'z' (See EBCDIC for an example). The only ordering guarantee is on the numeric digits.