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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,7c7fba57c4978feb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sun.com!news.sun.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 07 Sep 2009 02:27:36 -0500 Newsgroups: comp.lang.ada Subject: Re: Why no named case statements? References: <5233a224-07c1-4a7b-906e-b4cb8e193c85@y42g2000yqb.googlegroups.com> <1doe3xrcrqyeh.101b6gamg91bj.dlg@40tude.net> <26253452-b337-413c-9f7f-9e0a9b4f66fa@t2g2000yqn.googlegroups.com> From: Ole-Hjalmar Kristensen Organization: Sun Microsystems Date: 07 Sep 2009 09:27:35 +0200 Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cache-Post-Path: news1nwk!unknown@khepri42.norway.sun.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-1qWy5UTMGRmBheK/S2qyzWIzBdhPGZWW5iv9gz9+9y8UHl0Zk1doYR5aaKYuK8JIf+2NT86fwMp/jeG!aBOi2JBSAUM39up6aco2iuWU3jVkZ34l91bHgNLsbLpca4stFy4kQBsr X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Xref: g2news2.google.com comp.lang.ada:8200 Date: 2009-09-07T09:27:35+02:00 List-Id: That could be useful, but I have seen compilers produce worse code by having labels around (like not putting variables in registers), presumably because the analysis showed it was a potential target for a goto. >>>>> "B" == Britt writes: B> Labels are also useful as breakpoint targets if the compiler produces B> associated symbolic information that can then be used by the B> debugger. Using labels for this purpose is much better (more B> maintainable) than breaking on line numbers. Such permanent B> breakpoints are sometimes useful in formal white-box test procedures. B> SPARK was recently changed to allow use of Ada labels for this B> purpose (breakpoints, not gotos), and the GNATPP pretty-printer now B> has a new switch to format Ada labels on separate lines (as shown in B> Dmitry's example). B> - Britt -- C++: The power, elegance and simplicity of a hand grenade.