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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: What do you think about this? Date: Sat, 27 Jun 2015 19:47:24 +0200 Organization: A noiseless patient Spider Message-ID: 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> <6d3e7a4c-e691-4005-ad47-2507ed13031f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 27 Jun 2015 17:46:05 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="f5aad2008c6590bf7109bde4d2a7b7c5"; logging-data="17944"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TdFlNHLqQYGEb1/VmF34D" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <6d3e7a4c-e691-4005-ad47-2507ed13031f@googlegroups.com> Cancel-Lock: sha1:H1rR82pJ4dj49tM9kSaDLng3T70= Xref: number.nntp.giganews.com comp.lang.ada:193802 Date: 2015-06-27T19:47:24+02:00 List-Id: Le 27/06/2015 19:12, Laurent a écrit : > It sucks that renaming function Make_Antibiotique... to function Antibiotique ... doesn't work because I get conflicts between the Type Antibiotique and 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; I don't like mixing languages either... I would suggest: package Antibiotiques is type Antibiotique is private; function Nouvel_Antibiotique return Antibiotique; end Antibiotiques; This way the function name (=New_Antibiotic) expresses the value returned. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr