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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,13b19740d69cbdc2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-10 03:41:47 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Andrew Carroll" Newsgroups: comp.lang.ada Subject: Modes (was unbounded_string) Date: Fri, 10 Oct 2003 04:58:53 -0600 Organization: Cuivre, Argent, Or Message-ID: References: <20031010094017.680474C40C1@lovelace.ada-france.org> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1065782424 66817 80.67.180.195 (10 Oct 2003 10:40:24 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 10 Oct 2003 10:40:24 +0000 (UTC) To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:591 Date: 2003-10-10T04:58:53-06:00 > Message: 7 > Date: Fri, 10 Oct 2003 11:15:27 +0200 > From: Dmitry A. Kazakov > Subject: Re: Modes (was unbounded_string) > To: comp.lang.ada@ada-france.org > Message-ID: > Content-Type: text/plain; charset=us-ascii > > On Fri, 10 Oct 2003 02:27:19 -0600, "Andrew Carroll" > wrote: > [snip] > The rule of thumb is: newer use pointers if there is an alternative. > So: [snip] >Thus another rule: if a pointer, then when possible anonymous: > procedure Add (This: access X; Token: Unbounded_String); > -- This will be a primitive subprogram of X > [snip] > The Ada way is not to create objects you do not need. Okay, so now we're getting to the information I want to know. The "rules of thumb" for the "Ada idiom". Anyone got a list of "standardized rules of thumb for the Ada idiom"?