comp.lang.ada
 help / color / mirror / Atom feed
From: Bryce Bardin <bbardin@home.com>
Subject: Re: Unchecked_Conversion on different sized types -- problem?
Date: 2000/01/14
Date: 2000-01-14T00:00:00+00:00	[thread overview]
Message-ID: <387F83E2.DA4CFC32@home.com> (raw)
In-Reply-To: 85mqht$6sq$1@fleetstreet.Austria.EU.net

Werner Pachler wrote:
> 
> I am a little surprised!
> 
> As far as i remember UNCHECKED_CONVERSION refused the
> unchecked conversion between 2 different sized elements (Ada8x).
> 
> Is this new in Ada95?
> Is this the new way of "Ada" thinking (to be similar to "C")?
>

It is implementation-dependent.  (Think about truncation and
padding:  which end has the data, what padding bits?)  I don't 
recommend *ever* using UC for different sizes.   

> Regards,
> Werner
> 

Bryce




  parent reply	other threads:[~2000-01-14  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-13  0:00 Unchecked_Conversion on different sized types -- problem? Mike Silva
2000-01-13  0:00 ` reason67
2000-01-13  0:00 ` Bryce Bardin
2000-01-13  0:00   ` Mike Silva
2000-01-13  0:00     ` Mike Silva
2000-01-14  0:00       ` Bryce Bardin
2000-01-14  0:00         ` Mike Silva
2000-01-14  0:00   ` Matthew Heaney
2000-01-13  0:00 ` Jim Rogers
2000-01-13  0:00   ` Mike Silva
2000-01-13  0:00     ` James S. Rogers
2000-01-14  0:00 ` Vladimir Olensky
2000-01-14  0:00 ` Werner Pachler
2000-01-14  0:00   ` reason67
2000-01-14  0:00   ` Bryce Bardin [this message]
2000-01-14  0:00 ` Wrap-Up (was Re: Unchecked_Conversion on different sized types -- problem?) Mike Silva
2000-01-15  0:00   ` Matthew Heaney
2000-01-15  0:00     ` Robert A Duff
2000-01-14  0:00 ` Unchecked_Conversion on different sized types -- problem? Keith Thompson
2000-01-16  0:00   ` David A. Cobb
2000-01-14  0:00 ` Jeff Carter
replies disabled

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