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!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: Text_io package's Positive_Count type Date: Wed, 11 Jan 2023 22:46:56 +0100 Organization: A noiseless patient Spider Message-ID: References: <1ef161c8-8e65-4a82-8db8-c772e813be80n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 11 Jan 2023 21:46:56 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="fa41f8827690066173a54e7bc84a6dd8"; logging-data="945473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hj31e39qo2+XRG1kcrfOmE5A3AaHv/cA=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cancel-Lock: sha1:vPEtX9c1tRaaEm4ELO1cih8z6ug= Content-Language: en-US In-Reply-To: Xref: reader01.eternal-september.org comp.lang.ada:64799 List-Id: On 2023-01-11 22:04, Mace Ayres wrote: > ____ > This is different error than before and I easily see Put() is expecting Integer but has the.. count type; so I need some sort of translation to satisfy put(), maybe with and use Text_IO.Integer_IO as error message suggest? Ada.Text_IO.Integer_IO is a generic package that you would instantiate with Ada.Text_IO.Positive_Count. The instantiation would then have a Put procedure for Positive_Count. Alternatively, you could use Positive_Count'Image to convert your values into Strings that may be used directly with Ada.Text_IO.Put. -- Jeff Carter "You me on the head hitted." Never Give a Sucker an Even Break 108