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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f43af0172d927fa2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!proxad.net!proxad.net!feeder.ecngs.de!ecngs!feeder2.ecngs.de!news.osn.de!diablo1-ffm.news.osn.de!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: how to put Unsigned_64? Date: Mon, 30 Jan 2006 17:24:24 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: host86-142-141-218.range86-142.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com 1138641864 598 86.142.141.218 (30 Jan 2006 17:24:24 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Mon, 30 Jan 2006 17:24:24 +0000 (UTC) In-Reply-To: User-Agent: Thunderbird 1.5 (Windows/20051201) Xref: g2news1.google.com comp.lang.ada:2709 Date: 2006-01-30T17:24:24+00:00 List-Id: Norbert Caspari wrote: > If I try to printout a variable of the type Unsigned_64 with the put > statement (using Ada.Integer_IO), I get errors. Even though I use the item, > width and base arguments within the put statement. > > Could somebody please give me an example that works? > > The variable type Unsigned_64 is included in the Interface package. > I use the GNAT compiler. First off, there is no such package as "Ada.Integer_IO", so I guess you're actually using "Ada.Integer_Text_IO" :-) "Ada.Integer_Text_IO" is an instance of "Ada.Text_IO.Integer_IO" for type "Integer" - not for any other type. You need to instantiate a version of "Ada.Text_IO.Modular_IO" with type "Interfaces.Unsigned_64". Cheers -- Martin