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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?B?QmrDtnJuIEx1bmRpbg==?= Newsgroups: comp.lang.ada Subject: Re: pass a argument to spawn Date: Tue, 12 Jan 2016 17:10:56 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 12 Jan 2016 16:08:13 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="6a09ccc49493ecf301ef65af9aa456c7"; logging-data="1559"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WbM5pyE3NtrzailQNa3PN" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 In-Reply-To: Cancel-Lock: sha1:oexNEwJho3t1ItwWHXBijkz941Q= Xref: news.eternal-september.org comp.lang.ada:29103 Date: 2016-01-12T17:10:56+01:00 List-Id: On 2016-01-12 14:48, comicfanzine@gmail.com wrote: > > 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'" ? new String'("-a"); allocates memory for a string, assigns it the value -a and returns a pointer/access to it. It is NOT a string, but access/pointer to it new Integer'(5) allocates memory for an integer value, assigns it the value 5 and returns a pointer/access to it. > Normally when i use a String , i never use it like this . it is not a String. -- -- Björn