[fpc-devel] TStrings Add(array of string)
Andrew Haines
AndrewD207 at aol.com
Sun Apr 1 18:21:36 CEST 2012
On 04/01/12 05:13, Marco van de Voort wrote:
> In our previous episode, Michael Van Canneyt said:
>>> I was thinking about TStrings possibly having an overloaded function Add
>>> or AddStrings where the argument is an array of string?
>>>
>>> procedure Add(strs: array of string); overload;
>>> or
>>> procedure AddStrings(strs: array of string); overload;
>>>
>>
>> Better implement the second.
>> AddStrings already exists for a TStrings, it is more similar in functionality.
>
> Maybe better extending tprocess to have a array of const function than
> tstrings?
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
Here are two patches that do both. One extends TStrings with AddStrings
and the other extends TProcess with AddParams.
I'll let someone else decide which is better. :)
Regards,
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addparams.patch
Type: text/x-patch
Size: 834 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20120401/37be2ca6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addstrings.patch
Type: text/x-patch
Size: 1272 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20120401/37be2ca6/attachment-0001.bin>
More information about the fpc-devel
mailing list