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!reader02.eternal-september.org!feeder.eternal-september.org!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: syntaxic exploration Date: Sat, 23 Dec 2017 09:17:59 +0200 Organization: Tidorum Ltd Message-ID: References: <0d33e631-e63d-4346-ac95-5eec72127f4f@googlegroups.com> <0a42819a-9508-4094-b04b-b2b936c1435f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net hcL7voriihSZgB2NJuC5IQG8Ajv6oWgco0lBCAGVctpHpSmhw3 Cancel-Lock: sha1:Pdce1eg4lYbdZJVaB/iNuE9W4Q8= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: <0a42819a-9508-4094-b04b-b2b936c1435f@googlegroups.com> Xref: reader02.eternal-september.org comp.lang.ada:49601 Date: 2017-12-23T09:17:59+02:00 List-Id: On 17-12-23 03:47 , Mehdi Saada wrote: > Thank you, Niklas Holsti. Your way of doing it is just beautiful, as > always with conditional expressions. Also, I simply forgot about > the & operator for non-strings arrays. > Still: > p_poly_v1_g.adb:64:92: expected private type "T_Rationnel" defined at p_rationnels_g.ads:11, instance at p_poly_v1_g.ads:19 > p_poly_v1_g.adb:64:92: found type universal integer > p_poly_v1_g.adb:64:149: expected private type "T_Rationnel" defined at p_rationnels_g.ads:11, instance at p_poly_v1_g.ads:19 > p_poly_v1_g.adb:64:149: found type universal integer Sorry, I should have written "else Nulle" instead of "else 0". I forgot that your coefficients are rationals and not integers. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .