comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: pass a argument to spawn
Date: Tue, 12 Jan 2016 17:10:56 +0100
Date: 2016-01-12T17:10:56+01:00	[thread overview]
Message-ID: <n738dd$1gn$1@dont-email.me> (raw)
In-Reply-To: <d23bd460-5a1d-4f8a-a938-550c8ffe5d65@googlegroups.com>

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


  reply	other threads:[~2016-01-12 16:10 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
2016-01-12 16:10   ` Björn Lundin [this message]
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