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.224.172.68 with SMTP id k4mr14217690qaz.1.1376088448243; Fri, 09 Aug 2013 15:47:28 -0700 (PDT) X-Received: by 10.50.27.74 with SMTP id r10mr323441igg.10.1376088448201; Fri, 09 Aug 2013 15:47:28 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!fx3no1838218qab.0!news-out.google.com!he10ni1155qab.0!nntp.google.com!fx3no1838215qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 9 Aug 2013 15:47:27 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=63.80.193.9; posting-account=nD_N8QoAAACgNfe5vMwm0rMAu4pgYumJ NNTP-Posting-Host: 63.80.193.9 References: <87ob96ajv6.fsf@VLAN-3434.student.uu.se> <03ea570b-e45f-4694-ab9b-3413c4770379@googlegroups.com> <878v0aee8i.fsf@VLAN-3434.student.uu.se> <87ob96cxm8.fsf@VLAN-3434.student.uu.se> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: 4 beginner's questions on the PL Ada From: Alan Jump Injection-Date: Fri, 09 Aug 2013 22:47:28 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2404 Xref: news.eternal-september.org comp.lang.ada:16751 Date: 2013-08-09T15:47:27-07:00 List-Id: On Friday, August 9, 2013 3:36:52 PM UTC-7, Robert A Duff wrote: > You mean each task type, I think. >=20 > GNAT tries to make the names unique, but they are not always. > Read the docs for details, but for example: >=20 > X :=3D new Some_Task_Type; > X :=3D new Some_Task_Type; > X :=3D new Some_Task_Type; >=20 > You get three heap-allocated tasks, with nothing in the Image > to distinguish them other than the TCB address. >=20 > - Bob Umm...I'm a neophyte when it comes to Ada, but the example you gave doesn't= register with me as being valid. I read that as three separate allocations= in a row of Some_Task_Type to the same variable name, and logic would tell= me that with each new allocation, the previous allocation terminates, with= questionable (and likely implementation-specific) grace. Would that not re= sult in each allocation generating its own unique 'Image(Current_Task) resu= lt? It's been a long day, and I ran out of coffee hours ago... - - 73 de N5ILN Alan