From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.8 required=3.0 tests=BAYES_50,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: Proliferation of Reserved Words Date: Thu, 03 Jun 2021 16:58:23 -0700 Organization: None to speak of Message-ID: <87pmx2wleo.fsf@nosuchdomain.example.com> References: <827c60f6-b008-468b-9ab4-cf110edff252n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="79a2d783cb3312756c8301564188b04a"; logging-data="26008"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xLZX4HxQf8UL3DInLtMsf" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:EFrnk3oLfXikujhXxH9ysqYW7F8= sha1:FEDa0BtTcKAxkJx/ALhbuYQA6LE= Xref: reader02.eternal-september.org comp.lang.ada:62110 List-Id: AdaMagica writes: > accept, entry vs. procedure, procedure body > > This discussion really is 40 years late. But entries and procedures are in fact very different beasts. > A procedure is reentrant and has exactly one body. > An entry is not reentrant and cannot be called recursively; it has no body, rather it may have as many accept statements as you like or feel necessary (it may even have none - what the heck!). > > So different keywords for them are quite reasonable. > > Thinking about this: > Ultimatey, we could perhaps do with just one reserved word called keyword. Depending on the place where is stands makes it clear what it means: > keyword I keyword 1..10 keyword > X(I) := I + 1; > Keyword; > > Hm, perhaps a bit extreme :-) In a case-sensitive language, you can have 128 variations of "keyword". keyword I Keyword 1..10 keyWord X(I) := I + 1; keyworD keyWord Much more legible. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */