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 X-Google-Thread: 103376,2ebd9459a8ae4178 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!l4g2000vbz.googlegroups.com!not-for-mail From: Darkwing Newsgroups: comp.lang.ada Subject: Re: Question: dynamic rename? Date: Sat, 3 Sep 2011 20:11:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7a54d9f8-17be-4b50-be87-e84ccb4b2ce3@l4g2000vbz.googlegroups.com> References: <691c0c64-4b85-4465-9b12-5d56123b8d94@r8g2000prd.googlegroups.com> <0629faf5-21ff-40ea-8fce-5fa8e7e91e51@p25g2000pri.googlegroups.com> <4E622A11.5030403@obry.net> NNTP-Posting-Host: 173.20.60.254 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1315105890 14192 127.0.0.1 (4 Sep 2011 03:11:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 4 Sep 2011 03:11:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l4g2000vbz.googlegroups.com; posting-host=173.20.60.254; posting-account=6Q8JFQoAAADBXLVbQQxDpUhEoPGVZ0kj User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20100101 Firefox/6.0.1,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20843 Date: 2011-09-03T20:11:30-07:00 List-Id: On Sep 3, 6:22=A0am, Pascal Obry wrote: > Le 03/09/2011 14:27, ytomino a =E9crit : > > > Or using a case expression in Ada 2012: > > =A0 =A0 Signal : Signal_Type :=3D > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(case Configuration is > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0when One =3D> Signal_One, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0when Two =3D> Signal_Two); You can really do that in Ada 2012? (I've never used 2012, just 95). That's pretty cool. Any word on when 2012 will be finalized? > function signal_ref return access signal_type is > begin > case configuration is > when one =3D> return signal_one'Access; > when two =3D> return signal_two'Access; > end case; > end signal_ref; This is what I'll have to use. Well, actually just the value since I'm only reading and not writing. Also, I don't think I have have access to the 'access because the variables in question aren't aliased (I don't believe they are aliasable either).