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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Intervention needed? Date: Thu, 04 Apr 2019 16:07:45 +0100 Organization: A noiseless patient Spider Message-ID: References: <87wokhk289.fsf@mid.deneb.enyo.de> <87va01gv3t.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="51b0ed423ef8cff9bbe5d8f37963298d"; logging-data="30250"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/S07aGLNpYeb3EamsauqqbAqzknPPuV6E=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:9zRnRCTtG0/sdsk+rdZSZOVl6YM= sha1:nANQiVYhF2P1Ma9+6/GD8vmWoJI= Xref: reader01.eternal-september.org comp.lang.ada:56076 Date: 2019-04-04T16:07:45+01:00 List-Id: "Randy Brukardt" writes: > "Simon Wright" wrote in message > news:lywokdfk5q.fsf@pushface.org... >> "Randy Brukardt" writes: >> >>> The only way to make such a check that wouldn't trigger all of the >>> time would require looking at both the body and the call at the same >>> time -- a complete abandonment of privacy and separation of >>> concerns. >> >> But it would be the compiler looking, not me. > > Doesn't matter. One can't depend on the contract of a subprogram if > some calls are going to be illegal/raise P_E because of the contents > of the body. Sorry: I was confusing 'private' and privacy