[fpc-pascal] How can I implement "thrice" in Free Pascal?

Sven Barth pascaldragon at googlemail.com
Wed Oct 19 10:28:19 CEST 2011


Am 19.10.2011 09:59, schrieb Marco van de Voort:
> In our previous episode, Sven Barth said:
>>> This implementation will result in crashes if T is a reference-counted type.
>>
>> Right... I tend to forget about these... what would the correct way to
>> copy an array of ref counted types? E.g. an "array of string"?
>
> copy () ? :-)

I thought about "copy", too, but how would you implement a generic 
"concat" using "copy" (or even just an "array of String" one)?

Regards,
Sven




More information about the fpc-pascal mailing list