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-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:27c3:: with SMTP id i3mr1908173qkp.442.1637011621902; Mon, 15 Nov 2021 13:27:01 -0800 (PST) X-Received: by 2002:a25:284:: with SMTP id 126mr2304549ybc.486.1637011621704; Mon, 15 Nov 2021 13:27:01 -0800 (PST) Path: eternal-september.org!reader02.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: Mon, 15 Nov 2021 13:27:01 -0800 (PST) Injection-Info: google-groups.googlegroups.com; posting-host=47.34.247.166; posting-account=o_Y23woAAACPYGlDsFV1OivhygPNSoRn NNTP-Posting-Host: 47.34.247.166 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <49db08e4-4380-4877-9e50-a986856c9821n@googlegroups.com> Subject: Integer_IO or Modular_IO with different base as default From: Ken Roberts Injection-Date: Mon, 15 Nov 2021 21:27:01 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:63119 List-Id: I've been trying to look at how to instantiate Ada.Text_IO.Integer_IO and Ada.Text_IO.Modular_IO with a different base as default (base 8 for a project I'm playing with while learning). So far, the only thing I can find is instantiate with a different integer (or mod number), but the base is always defined as 10. I'd like to output numbers for the project in base 8 (octal) in keeping with the documentation on how the digital system works. Does anyone have an idea on how to instantiate Integer_IO (or Modular_IO) with Default_Base := 8 ? So far, the only thing I've been able to work with is copy Ada.Text_IO.Integer_IO (or Modular_IO) in my project as a different package with the only change being the Default_Base parameter. Any help with noob questions would be appreciated.