From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Contracts in generic formal subprogram Date: Sat, 8 Apr 2023 10:02:31 +0200 Organization: A noiseless patient Spider Message-ID: References: <0c555ce7-0b2e-49f1-8930-c4f4796793e4n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 8 Apr 2023 08:02:32 -0000 (UTC) Injection-Info: dont-email.me; posting-host="40020dac18733774fce221bdc9fdcf93"; logging-data="1265587"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Iv/Qn5r7Tq0F262+LG4t55MwaF7xm71Q=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Cancel-Lock: sha1:/LA26BjMvcFGC+1vCWA1SivVzuM= In-Reply-To: <0c555ce7-0b2e-49f1-8930-c4f4796793e4n@googlegroups.com> Content-Language: en-US Xref: feeder.eternal-september.org comp.lang.ada:65078 List-Id: On 2023-04-08 09:00, mockturtle wrote: > Should the actual subprogram specify the same contract? I am not sure (and I guess this could be a stumbling block for the adoption of this idea). The general principle of substitutability is that the preconditions can be weakened, the postoconditions can be strengthened. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de