4 ms·
The only thing I disliked was the `begin ... end` and the `begin ... end;` (notice the semicolon) structure on if-then-else C (and many others) has simplified
by raister 6y ago
The only thing I disliked was the `begin ... end` and the `begin ... end;` (notice the semicolon) structure on if-then-else
C (and many others) has simplified employing brackets.
- andi999 6y agoSo you never tried to write a function that accepts strings with different length?
- raister 6y agoThis was 'solved' with pointers, didn't? (symbol ^) Well, we're talking about at least 25 years ago, so I clearly not remember this hiccup whatsoever
- andi999 6y agoTurbo Pascal didnt have that hiccup, only the original language.
- badsectoracula 6y agoYou can work around this - Turbo Pascal's strings are essentially syntax sugar for type string = record Length: Byte; Chars: array [1..255] of Char end; You can use this to make your own string handling procedures, the hardest part would be passing arbitrary string literals but that could probably worked around too with conversion functions.