comp.lang.ada
 help / color / mirror / Atom feed
From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: An alternative to Unchecked Conversion
Date: 1999/12/17
Date: 1999-12-17T00:00:00+00:00	[thread overview]
Message-ID: <slrn85keec.46.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 3859a3ad_2@news1.prserv.net

* Matthew Heaney wrote:
>The object declaration
>
>declare
>  function To_Unsigned is
>    new Unchecked_Conversion (Character, Unsigned_8);
>
>  C_As_Byte : constant Unsigned_8 := To_Unsigned ('A');
>begin
>
>should be identical to the declaration
>
>declare
>  C : constant Character := 'A';
>begin
>
>If the former is more expensive than the latter, then your compiler is
>broken.  

Nope. The former one contains a restriction to 8 bit which can be
considerably slower that using the native character size of the processor.




  reply	other threads:[~1999-12-17  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-16  0:00 An alternative to Unchecked Conversion Tom_Hargraves
1999-12-16  0:00 ` Jeff Creem
1999-12-16  0:00 ` Matthew Heaney
1999-12-16  0:00   ` Richard D Riehle
1999-12-17  0:00     ` Ted Dennison
1999-12-17  0:00       ` Richard D Riehle
1999-12-16  0:00   ` Tom Hargraves
1999-12-16  0:00     ` Matthew Heaney
1999-12-17  0:00       ` Lutz Donnerhacke [this message]
1999-12-17  0:00         ` Matthew Heaney
1999-12-16  0:00     ` DuckE
     [not found]     ` <mhrj5s4qckk7rt1j3pu0s3r438e281pu37@4ax.com>
1999-12-17  0:00       ` Simon Wright
     [not found]         ` <g9rr5s84eeov4vvp2v9v70jo9b5uporm0v@4ax.com>
1999-12-20  0:00           ` Simon Wright
1999-12-23  0:00             ` Robert Dewar
1999-12-18  0:00       ` Rex Reges
1999-12-18  0:00         ` Matthew Heaney
1999-12-19  0:00         ` Robert Dewar
1999-12-20  0:00     ` Charles H. Sampson
1999-12-16  0:00 ` Mark A Biggar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox