comp.lang.ada
 help / color / mirror / Atom feed
From: comicfanzine@gmail.com
Subject: Re: pass a argument to spawn
Date: Tue, 12 Jan 2016 05:48:36 -0800 (PST)
Date: 2016-01-12T05:48:36-08:00	[thread overview]
Message-ID: <d23bd460-5a1d-4f8a-a938-550c8ffe5d65@googlegroups.com> (raw)
In-Reply-To: <ea003744-e675-467f-9534-3305b6c05541@googlegroups.com>

If i understand :

 subtype Argument_List is String_List;

 which is simply :

  type String_List is array (Positive range <>) of String_Access;

 which is a access to the pointer :

  type String_Access is access all String;


Now , in the syntax :

    Arg : constant Argument_List := (1 => new String'("-a"));


If this is a call to the pointer value , why use : "new String'" ?

Normally when i use a String , i never use it like this . 

----------------
Anh Vo = In your exemple you create your own function with Interfaces.C , that can be a better way to use a external program then Spawn , i keep it for later :)
----------------
 Per Sandberg = The GNAT.Expect package is not helping .

It's pretty much , more complicated :/


  parent reply	other threads:[~2016-01-12 13:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-12  1:17 pass a argument to spawn comicfanzine
2016-01-12  7:05 ` Anh Vo
2016-01-12  7:12 ` Per Sandberg
2016-01-12 13:48 ` comicfanzine [this message]
2016-01-12 16:10   ` Björn Lundin
2016-01-12 19:36 ` comicfanzine
2016-01-12 20:58   ` Per Sandberg
2016-01-17 17:28 ` comicfanzine
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox