From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.82.130 with SMTP id g124mr111059366ywb.11.1452606516327; Tue, 12 Jan 2016 05:48:36 -0800 (PST) X-Received: by 10.182.40.227 with SMTP id a3mr1197759obl.14.1452606516287; Tue, 12 Jan 2016 05:48:36 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!6no4446168qgy.0!news-out.google.com!l1ni11349igd.0!nntp.google.com!o2no2242095iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 12 Jan 2016 05:48:36 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=109.201.154.156; posting-account=zd4fUAoAAABZGnAfDxrdJ5Lpts-qUilv NNTP-Posting-Host: 109.201.154.156 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: pass a argument to spawn From: comicfanzine@gmail.com Injection-Date: Tue, 12 Jan 2016 13:48:36 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:29101 Date: 2016-01-12T05:48:36-08:00 List-Id: 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 :/