Because there are few certain condition when we need to observe what happened 
to ansistring/unicodestring variable. In my case now, I need it to learn how 
reference counting works. For example, using Move() on ref-counted string type 
is considered danger unless we do it properly, and I need to verify that 
everythings is correct after such operation.

I need StringRefCount() equivalence only for convenience, instead of writing a 
special codes/function in my program to achieve this. Well, if Delphi care 
about this need, why FPC not? :-)



----- Original Message ----
From: dmitry boyarintsev <skalogryz.li...@gmail.com>
To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org>
Sent: Fri, April 30, 2010 3:22:22 PM
Subject: Re: [fpc-pascal] Is there a StringRefCount() equivalence?
 
On Fri, Apr 30, 2010 at 7:42 AM, Bihar Anwar <bihar_an...@rocketmail.com> wrote:
> I hope FPC developers will include StringRefCount() to the RTL.

Why would you need that?

thanks,
Dmitry
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



      
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to