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,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Fri, 07 May 2010 08:27:35 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1273235236 12828 192.74.137.71 (7 May 2010 12:27:16 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 7 May 2010 12:27:16 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:QkevGSx7bdhQURU71j4nlRhfmfs= Xref: g2news2.google.com comp.lang.ada:11365 Date: 2010-05-07T08:27:35-04:00 List-Id: "Randy Brukardt" writes: > I actually don't buy the need for the Assert pragma in the first place: such > checks are rarely expensive and thus should simply be part of the code > always. If they're not expensive, then you're not using it enough. ;-) Also, the other advantage of pragma Assert over an Assert procedure is that you can put the pragma in declarative parts and package specs. >... (And the ones that are expensive need a lot more control than simply > on or off: Janus/Ada uses trace switches that can be controlled on a > per-unit basis.) Sorry, I don't buy that sort of argument in general: If you want to do (simple) X, you probably also want (complicated) Y, so we're not going to allow X. - Bob