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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,dc1fff2721602dfa X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.206.195 with SMTP id fv3mr5369379qab.1.1359680094332; Thu, 31 Jan 2013 16:54:54 -0800 (PST) X-Received: by 10.49.15.100 with SMTP id w4mr1067561qec.26.1359680094247; Thu, 31 Jan 2013 16:54:54 -0800 (PST) Path: k2ni4456qap.0!nntp.google.com!p13no7590682qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 31 Jan 2013 16:54:54 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.153.54.159; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 69.153.54.159 References: <4978d638-a04b-4561-85e9-cf6620265af2@googlegroups.com> <86boc63n5d.fsf@gaheris.avalon.lan> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada and string literals From: Shark8 Injection-Date: Fri, 01 Feb 2013 00:54:54 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-01-31T16:54:54-08:00 List-Id: On Wednesday, January 30, 2013 7:52:58 AM UTC-6, Niklas Holsti wrote: > > -- The following does NOT work: > .. > is > A, B : String; > begin > if Alpha then A := "James"; else A := "John" ; end if; > if Beta then B := "Jill"; else B := "Jennie"; end if; > Foo (A, B); > .. But it's unneeded in Ada 2012 -- use the following: Foo( Param_1 => (if alpha then "James" else "John"), Param_2 => (if beta then "Jill" else "Jennie") );