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=-0.5 required=3.0 tests=BAYES_05,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:3509:b0:532:1605:97fe with SMTP id nk9-20020a056214350900b00532160597femr2448198qvb.15.1673471063235; Wed, 11 Jan 2023 13:04:23 -0800 (PST) X-Received: by 2002:ac8:73ca:0:b0:3a5:4f9b:215a with SMTP id v10-20020ac873ca000000b003a54f9b215amr3700917qtp.394.1673471063093; Wed, 11 Jan 2023 13:04:23 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 11 Jan 2023 13:04:22 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=71.202.101.82; posting-account=1sN4oQoAAABANGeLN5K5KDzu7t8XhLSV NNTP-Posting-Host: 71.202.101.82 References: <1ef161c8-8e65-4a82-8db8-c772e813be80n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Text_io package's Positive_Count type From: Mace Ayres Injection-Date: Wed, 11 Jan 2023 21:04:23 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:64797 List-Id: -- combinations.ads -- physical file with gearbox; use gearbox; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Term_IO; use TERM_IO; with Text_IO; use Text_IO; package combinations is ... col_is : Positive_Count ; -- types from Text_IO row_is : Positive_Count ; procedure build; ... end combinations; -- ************************************* -- combinations.adb -- physical file package body combination is .... procedure build is .. begin ... put(" Row is " ); put(row_is); put(" Column is "); put(col_is); ... end combinations; -- ***************************** compiler error line_no : no candidate interpretations match the actual: missing argument for parameter 'Item' in call to "put" ... possible missing instantiation of Text_IO.Integer_IO expected type "Standard Integer" found type Ada.Text_IO.count ____ 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?