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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,44b0b57dd5d8f69 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.66.72.73 with SMTP id b9mr801373pav.9.1344184389486; Sun, 05 Aug 2012 09:33:09 -0700 (PDT) Path: p10ni15828901pbh.1!nntp.google.com!news.glorb.com!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: List of Negative Language rules? Date: Sun, 05 Aug 2012 18:33:07 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: UnMIRLNCp3JK23zUh5nsPA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.01 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-08-05T18:33:07+02:00 List-Id: Le Sun, 05 Aug 2012 16:39:42 +0200, Patrick = a =C3=A9crit: > This post is not a complaint and I hope it won't generate complaints = > about the language, it is a request for help in organizing language = > constructs. > > Ada is a feature rich language but as we know it is neither trivial to= = > learn or even more so, trivial to write a compiler for. > > One thing I am having a hard time with are all the negative rules. I a= m = > NOT complaining about any of these but some very simple examples: > > Pre-Ada 2012 functions cannot take in parameters Or the other way: Post-Ada 2005 functions can get out parameters. That = would be less an issue if they was a way to remind at call places, what = = the status of a parameter is. There use to be some proposals at = comp.lang.ada, but none reached the formal proposal process. Prior to Ad= a = 2012, looking at a function invocation, you were rather sure parameters = = were not modified, except indirectly if you passed it a access to = something, and this certainty existed only for functions, now it's gone = = and that's now less easy to trust what you see. P.S. You've made a typo in your sentence. You probably wanted to say = =E2=80=9CPre-Ada 2012 functions cannot take out parameters=E2=80=9D -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity