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.129.88.133 with SMTP id m127mr8624064ywb.3.1435425122035; Sat, 27 Jun 2015 10:12:02 -0700 (PDT) X-Received: by 10.140.96.137 with SMTP id k9mr90495qge.10.1435425122015; Sat, 27 Jun 2015 10:12:02 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!z60no404404qgd.0!news-out.google.com!4ni8962qgh.1!nntp.google.com!z60no404402qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 27 Jun 2015 10:12:01 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.99.95.58; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 83.99.95.58 References: <9894cde7-2cf8-4060-be65-857812ad7b09@googlegroups.com> <17436268-aceb-461f-bdcf-eee8436cd0e6@googlegroups.com> <86y4jaqzdx.fsf@stephe-leake.org> <86oak5qulb.fsf@stephe-leake.org> <78882aed-4063-409b-a92e-6025c3097a52@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6d3e7a4c-e691-4005-ad47-2507ed13031f@googlegroups.com> Subject: Re: What do you think about this? From: Laurent Injection-Date: Sat, 27 Jun 2015 17:12:02 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.giganews.com comp.lang.ada:193800 Date: 2015-06-27T10:12:01-07:00 List-Id: On Thursday, 25 June 2015 00:30:32 UTC+2, Jeffrey R. Carter wrote: > The parameter Name is of type String. What you could have done is >=20 > function F return String is > -- No declarations > begin -- F > return A & B & C; > end F; >=20 > and then >=20 > Create (Name =3D> F, ...); >=20 > I hope that helps make things clearer. How is that the compiler accepts that part "return A & B & C;"? Or is that = some sort of shortcut which has been introduced at some point. I have seen = it been used quite often in JB Ada 2005 and it even works with more complex= types but I didn't find an detailed explanation. >> There's a function named Make_File_Name. A good guideline is to give pro= cedures=20 >> names that are verb phrases (such as Make_File_Name); boolean functions,= =20 >> predicates (Empty or Is_Empty); and other functions, noun phrases (File_= Name).=20 >> File_Name would be a better name for this function.=20 >Hm yes I thought already about that. Because Test_Antibiotique: Antibiotiq= ues.Antibiotique :=3D >Antibiotique.Antibiotique.Make_Antibiotique (is a fu= nction) looks terrible, is too long and >somehow redundant. Antibiotique.Ma= ke would be clear enough.=20 It sucks that renaming function Make_Antibiotique... to function Antibiotiq= ue ... doesn't work because I get conflicts between the Type Antibiotique a= nd the function. So what is the recommendation for naming in this case. package Antibiotiques... type Antibiotique is private; function Make_Antibiotique... return Antibiotique; end Antibiotiques; Thanks