[fpc-devel] TProcess empty parameter

Sven Barth pascaldragon at googlemail.com
Thu May 7 17:01:56 CEST 2015


Am 07.05.2015 14:41 schrieb "Michael Van Canneyt" <michael at freepascal.org>:
>
>
>
> On Thu, 7 May 2015, Marco van de Voort wrote:
>
>> In our previous episode, Michael Van Canneyt said:
>>>>
>>>>
>>>> Since NIL is a termination of an array of pchar in C that is not ok.
>>>
>>>
>>> if that were the case, argc would not have been introduced,
>>> which is why I doubt the use of this argument ?
>>
>>
>> Where is argc on the calling side? In the parameters of ExecVE ? Right.
>>
>>> C code that regards nil as the last element of the argv array is just
>>> wrong.
>>
>>
>> IMHO *nix is not terribly well designed. Probably the multitude of
versions
>> and being interwoven with C prohibited doing massive cleanups.
>
>
> This argument can be applied to any OS older than 5 years :)
>
> Backwards compatibility probably prevents any OS from being considered
'well designed'.
>

In our company's OS we shuffle around quite frequently to improve the
design and it's older than 5 years already. But then again we don't have
any users except ourselves to care for currently... ^^

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20150507/2ea379fc/attachment.html>


More information about the fpc-devel mailing list