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.7.7 with SMTP id b7mr14677934qab.5.1376095172512; Fri, 09 Aug 2013 17:39:32 -0700 (PDT) X-Received: by 10.49.116.243 with SMTP id jz19mr453695qeb.6.1376095172495; Fri, 09 Aug 2013 17:39:32 -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!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!fx3no1846060qab.0!news-out.google.com!he10ni1155qab.0!nntp.google.com!fx3no1846051qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 9 Aug 2013 17:39:32 -0700 (PDT) In-Reply-To: <87txiycxx9.fsf@VLAN-3434.student.uu.se> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.34; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.34 References: <87ob96ajv6.fsf@VLAN-3434.student.uu.se> <03ea570b-e45f-4694-ab9b-3413c4770379@googlegroups.com> <878v0aee8i.fsf@VLAN-3434.student.uu.se> <87txiycxx9.fsf@VLAN-3434.student.uu.se> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2531ecb1-4ac0-404a-8229-3110d4268374@googlegroups.com> Subject: Re: 4 beginner's questions on the PL Ada From: Anh Vo Injection-Date: Sat, 10 Aug 2013 00:39:32 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:16762 Date: 2013-08-09T17:39:32-07:00 List-Id: On Friday, August 9, 2013 3:16:34 PM UTC-7, Emanuel Berg wrote: > Jeffrey Carter writes: > > > This may not be a concern for your present needs, though > > > unnecessary non-portability usually bites you sooner or later in > > > real projects. > > Yes, I agree. > > > An advantage of the technique used in PragmARC.Reflection is > > > that it is part of the core language, and so implemented by all > > > compilers, and the resulting string is defined by the language, > > > and so is the same for all compilers. > > That sounds great. Unless it requires lots of code, why don't you > > just show me how it is done? It is much easier understanding that > > way. You can give/assign a name to a task the way you like by using predefined package Ada.Task_Attributes. In this case you most likely instantiate it with String subtype. Therefore, it is will be completely portable. Anh Vo