comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@mitre-bedford.arpa  (Robert I. Eachus)
Subject: Re: unchecked conversion
Date: 2 Jan 92 06:09:16 GMT	[thread overview]
Message-ID: <EACHUS.92Jan2000916@Dr_No.mitre.org> (raw)

In article <1546@cyclope.enst.fr> rosen@cyclope.enst.fr (Jean-Pierre Rosen) wri
tes:

   [lots of good stuff deleted]
   In a project, QA should forbid using UNCHECKED_CONVERSION unless a
   waiver is granted. QA will then just ask the library manager for
   units that depend on UNCHECKED_CONVERSION to check that only
   authorized modules make use of it, NO CODE INSPECTION is necessary.
   This is a great improvement over undisciplined type-cast (like in
   C/C++) where careful reading of all code is mandatory.

   While I am not sure that the authority to permit use of
UNCHECKED_CONVERSION should rest with QA, instead of the chief
architect or a design committee, there should be one hard and fast
rule:  Use of UNCHECKED_CONVERSION in a library package specification
is unchecked perversion.

   Seriously the only way I have seen programmers get into trouble
with UNCHECKED_CONVERSION is to instantiate it in a library package.
When there is a later need to change the implementation of the type,
it turns out that other code depends on the mapping.  Of course there
is now no checking either at compile time or run-time to find out
where these dependancies are.  Might as well program in C.


--

					Robert I. Eachus

"We woke up this morning in the Union of Sovereign States."  Russian
television announcer Alexander Gurnov told viewers Sunday (December 8,
1991).  "We are now in a Commonwealth of Independent States.  You
never know what country we will wake up in tomorrow."

             reply	other threads:[~1992-01-02  6:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-01-02  6:09 Robert I. Eachus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-06-07  7:46 Unchecked_Conversion Lele
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 ` Unchecked_Conversion Jacob Sparre Andersen
2001-06-07 19:44 ` Unchecked_Conversion tmoran
2001-06-09 17:07   ` Unchecked_Conversion Robert A Duff
1991-12-31 13:53 unchecked conversion 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