From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: how to put Unsigned_64?
Date: Mon, 30 Jan 2006 17:24:24 +0000 (UTC)
Date: 2006-01-30T17:24:24+00:00 [thread overview]
Message-ID: <drli48$im$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com> (raw)
In-Reply-To: <drlh4j$uvh$02$1@news.t-online.com>
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
next prev parent reply other threads:[~2006-01-30 17:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-30 17:07 how to put Unsigned_64? Norbert Caspari
2006-01-30 17:22 ` Frank J. Lhota
2006-01-30 18:18 ` Norbert Caspari
2006-01-30 17:24 ` Martin Dowie [this message]
2006-01-30 18:23 ` Norbert Caspari
2006-01-30 19:35 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox