comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: Unchecked_Conversion
Date: Thu, 07 Jun 2001 16:01:50 +0200
Date: 2001-06-07T16:01:50+02:00	[thread overview]
Message-ID: <3B1F894E.BB943BCC@nbi.dk> (raw)
In-Reply-To: 9fnbtt$ild$1@e3k.asi.ansaldo.it

Lele:

The reason both features (Unchecked_Conversion and colocated
variables) exist is that they both can be the right way to
solve a problem.

> Are there particular risks about using Unchecked_Conversion?

Yes. If the size of the two types isn't the same, the result
of an Unchecked_Conversion is undefined (IIRC).

> Is it a better approach the address attribute?

It has the same problem, but in a slightly different form.

Show us an example we can comment on.

Jacob
-- 
"Any, sufficiently complicated, experiment is indistinguishable from magic."



  parent reply	other threads:[~2001-06-07 14:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-07  7:46 Unchecked_Conversion Lele
2001-06-07 12:50 ` Why not try Checked_Conversion? Petter Fryklund
2001-06-07 13:01 ` Unchecked_Conversion Marc A. Criley
2001-06-07 13:21 ` Unchecked_Conversion Ted Dennison
2001-06-10 18:20   ` Unchecked_Conversion Robert B. Love 
2001-06-10 19:48     ` Unchecked_Conversion Jeff Creem
2001-06-10 22:10     ` Unchecked_Conversion Keith Thompson
2001-06-11 13:56     ` Unchecked_Conversion Ted Dennison
2001-06-11 14:21     ` Unchecked_Conversion Marin David Condic
2001-06-07 14:01 ` Jacob Sparre Andersen [this message]
2001-06-07 19:44 ` Unchecked_Conversion tmoran
2001-06-09 17:07   ` Unchecked_Conversion Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
1992-01-02  6:09 unchecked conversion Robert I. Eachus
1991-12-31 13:53 Jean-Pierre Rosen
1991-12-30 23:25 Greg Lomow
replies disabled

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