Re:Efficient string copying and concatenation in C
by stkdump on Thursday September 12, 2019 @03:23PM
(#20955336)
I think the problem with Pascal's strings wasn't that they stored a length. The problem was that every string variable always occupied 256 bytes of RAM and no string could ever be bigger than 255 characters.
Re:Efficient string copying and concatenation in C
by sllabres on Thursday September 12, 2019 @05:37PM
(#20956748)
UCSD-, TP/BP-, Freepascal?
Re:Efficient string copying and concatenation in C
by sllabres on Thursday September 12, 2019 @06:41PM
(#20957234)
I was in the impression that TP strings grew dynamically (memory), but I just checked for TP and this seems to be wrong.
Probably too much time has passed since then ;)
There was a quiet market war some forty years ago about that, and Pascal lost.
But yeah, now we can afford it, the downsides vastly exceed the vanishing cost.