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-Thread: 103376,6aa1ec264ce25142 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.216.84.129 with SMTP id s1mr91682wee.2.1346241159654; Wed, 29 Aug 2012 04:52:39 -0700 (PDT) Path: e9ni72500336wia.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Real syntax problems in Ada Date: Wed, 29 Aug 2012 12:58:13 +0200 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <1p5r39cusgc1n$.18nj9sytckk6$.dlg@40tude.net> <289703e7-1fba-41ce-b781-9e58ff2ec7df@googlegroups.com> <1w3xr2kbz8a19$.wpfoz4p1j1sb.dlg@40tude.net> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 X-Trace: tigger.scc.uni-weimar.de 1346241160 15086 141.54.178.228 (29 Aug 2012 11:52:40 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Wed, 29 Aug 2012 11:52:40 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: Content-Type: TEXT/PLAIN; charset=US-ASCII Date: 2012-08-29T12:58:13+02:00 List-Id: I wrote: > Similarly, we write "if B then null; else Do_Something end if;" instead of > "if B then else Do_Something end if;". This is an advantage of Ada that > improves readability and helps to catch flaws. Ooops! there is ";" missing behind "Do_Something". > Here we are hurt by another minor but annoying inconsistency of the Ada > syntax. Almost everywhere, we have to write "null" to make it explicit if > we ask for nothing, or for nothing additional. The inconsistency I mean is that, instead of writing "(null)" for the empty parameter list, we just skip the parameter list. > If we introduce the notation "(null)" for empty parameter lists, we can > easily solve your issue: > > generic procedure Baz_1 (with X: Integer) (null); > -- X is a generic formal object, > -- (I am not sure if we should allow or even require "with" here.) > > generic procedure Baz_2 (null) (X: Integer); > -- X is a plain argument -- ---- Stefan.Lucks (at) uni-weimar.de, University of Weimar, Germany ---- ------ I love the taste of Cryptanalysis in the morning! ------