On Mon, 9 Jun 2003, CBFalconer wrote:
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.
I saw EBCDIC and I was frightened.
I don't know how many routines would have to be rewritten in String and String2 units to fit in ... So, if it's not a scrict requirement, or if it doesn't become one day, I don't know if it is worthwhile ...
Did anybody run GNU Pascal on EBCDIC platform yet?
Mirsad