Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On the other hand: having your standard string type limited to 255 characters - requiring a completely different set of functions to manipulate longer ones - is painful in its own way.

(You can avoid some of the pain by using a big-endian length, and converting immutable Str64K pointers to Str255 by taking a pointer to the second byte of the length. But that's a terrible hack.)



Only if stuck in standard Pascal, as Pascal evolution, Modula-2 had already fixed that by 1978.

Whereas by the time Turbo Pascal for Windows came to be, that was also sorted out in Object Pascal according to Borland linage.

As evolution to Modula-2, following up on Pascal evolution, Oberon had it sorted out as well in 1990.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: