[fpc-devel] Unicodestring branch, please test and help fixing
Anton Kavalenka
anton.k at tut.by
Tue Sep 9 16:20:13 CEST 2008
> Nothing stops you from doing this yourself.
>
> But for something as basic as text operations, I think this is bloat.
>
> Imagine that you would have to do
> I:=TInteger.Create(1);
> J:=TInteger.Create(2);
> I.Add(J);
> What kind of language do you end up with then ? Utterly unreadable, and
> slow, because heavily relying on the heap.
>
> Michael.
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
>
Bad example
Numbers are scalars
Strings are vectors
+= operator in not so straightforward as for numbers.
Who else except Pascal developers knows that s:=s1+s2 is the string
concatenation and invokes lot of hidden stuff that is out of control.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20080909/c66b8a9e/attachment.html>
More information about the fpc-devel
mailing list