Graeme Geldenhuys schrieb:
On 29/08/12 09:54, Michael Schnell wrote:

Nonetheless to me it seems like a nice idea to have String as a sibling
of TObjcet which in this case is somehow self-creating and freeing
(RefCounting = True) like an interfaced Object.

I'm working on exactly that (well, if I understood your message correctly). It's just an experiment at the moment, but I have implemented a IString interface which declares methods like Count(), Length(), Replace(), Compare(), .SubStr(), .CharAt(), .CodepointAt() etc...

How do you intend to implement string operators?

AFAIK string concatenation "+" in .NET (and others?) is slow, instead it's suggested to use concatenation methods directly. The intermediate results in string expressions can cause much overhead.

DoDi


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to