[Lazarus] Delphi post-XE3 roadmap

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Aug 29 18:24:05 CEST 2012


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





More information about the Lazarus mailing list