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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,45b47ecb995e7a3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-06 15:33:21 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3B6F1B2F.4FC3C833@gsde.hou.us.ray.com> From: "Stanley R. Allen" Reply-To: Stanley_R_Allen-NR@Raytheon.com X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-2.14.10smp i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Idioms Progress Preview References: <3B6A2616.C89C9760@worldnet.att.net> <5ee5b646.0108031145.1306c91@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 06 Aug 2001 17:33:19 -0500 NNTP-Posting-Host: 192.27.47.71 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 997137200 192.27.47.71 (Mon, 06 Aug 2001 17:33:20 CDT) NNTP-Posting-Date: Mon, 06 Aug 2001 17:33:20 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:11422 Date: 2001-08-06T17:33:19-05:00 List-Id: Robert Dewar wrote: > To me an idiom is a combination > of features that is not so obvious, e.g. the following for labeling > branches of cases > > when XYZ => XYZ_Case : declare > declarations > begin > ... > end XYZ_Case; > > or the use of declare blocks to get local suppression > > declare > pragma Suppress (...) > begin > ... > end; > > or the use of pragma Import to suppress initialization when an address > clause is present. Or making an array null or full based on a boolean configuration: Feature_Present : constant Boolean := False; -- change to true Size_Of_Array : constant := 100_000; The_Array : The_Array_Type (1 .. Boolean'Pos (Feature_Present) * Size_Of_Array); -- null array if feature is not present -- Stanley Allen mailto:Stanley_R_Allen-NR@Raytheon.com