[fpc-pascal] InstantFPC and argv

Tomas Hajny XHajT03 at hajny.biz
Mon May 7 15:24:45 CEST 2012


On Mon, May 7, 2012 14:26, Mattias Gaertner wrote:
> On Mon, 7 May 2012 13:34:50 +0200 (CEST) "Tomas Hajny"
<XHajT03 at hajny.biz> wrote:
>> 54 lines for WinXX, 144 for OS/2 and 278 for GO32v2 (all without the
>> additional platform specific implementation for changing the passed
>> environment).
>
> Where do got those numbers?
> TProcess for winxx only needs a few lines to set the environment:

The numbers are for existing ExecuteProcess implementations (my original
point was that if you needed to change the environment, you could not use
ExecuteProcess as provided by the RTL and had to replicate the
ExecuteProcess implementations within InstantFPC instead). Your (later)
proposal to move to TProcess solves that better, of course.


 .
 .
> It's not big. The RTL lacks little functions for scripts. For
> example download an URL, get a list of files in a directory, load a
> xml file, test a RE.
>
> Running pascal programs as scripts is only the first step. The
> next step is to provide a bunch of units that make
> commons tasks one liners. That's why people use perl et al.
 .
 .

<KIDDING need_to_respond=0>
Calling wget, ls or grep already are one liners. ;-)
</KIDDING>

Tomas





More information about the fpc-pascal mailing list