Re: [fpc-pascal]force ansistrings to be copied on duplication

2004-07-29 Thread Marc Santhoff
Am Do, den 29.07.2004 schrieb Jonas Maebe um 09:29: > On 29 jul 2004, at 06:33, Marc Santhoff wrote: > > > according to the manual AnsiStrings are 'copied on change'. > > Correct. > > > Can the compiler be forced to copy on duplication? > > No, but the RTL can be: > > Procedure UniqueString(Va

Re: [fpc-pascal]force ansistrings to be copied on duplication

2004-07-29 Thread Jonas Maebe
On 29 jul 2004, at 06:33, Marc Santhoff wrote: according to the manual AnsiStrings are 'copied on change'. Correct. Can the compiler be forced to copy on duplication? No, but the RTL can be: Procedure UniqueString(Var S : AnsiString); This procedure will make variable S point to an ansistring with