From: carson@tron.UUCP (Dana Carson)
Subject: Re: Pre-condition vs. Post-condition (actually inintialization)
Date: 28 Mar 91 20:43:29 GMT [thread overview]
Message-ID: <715@tron.UUCP> (raw)
In-Reply-To: 2937@sparko.gwu.edu
In article <2937@sparko.gwu.edu> mfeldman@seas.gwu.edu () writes:
>make life a whole lot easier by making it _possible_ to initialize all
>types with default initial values, consistently. I am not interested in
>having clients depend upon the initial values; rather I want clients
>to be able to depend on variables, types, whatever, _not_ being
>_uninitialized._ There will always be something in there that's
>"in-range" for the type. Clearly Ada83 thought this was worth doing for
>Mike
Actually IMHO it should be possible to initialize variables with INVALID
so that it isn't anything legal so that you know that it hasn't been
set. I believe that Rational allows this on it's machines?
I do this with enumerated types quite often but you can't do ti with
integers, and I have to put in the checks for the enumerated types
rather than an automatic exception like with ranges.
--
Dana Carson
Westinghouse Electronic Systems Group Mail Stop 1615
UUCP:carson@tron.UUCP
carson@tron.bwi.wec.com
...!uunet!tron!carson
AT&T: (301) 765-3513
WIN: 285-3513
next prev parent reply other threads:[~1991-03-28 20:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-03-24 21:23 Pre-condition vs. Post-condition stt
1991-03-25 16:00 ` Arthur Evans
1991-03-25 17:05 ` Michael Feldman
1991-03-26 4:31 ` Jim Showalter
1991-03-26 10:21 ` Richard A. O'Keefe
1991-03-26 16:44 ` Michael Feldman
1991-03-26 22:03 ` Richard A. O'Keefe
1991-03-26 23:36 ` Michael Feldman
1991-03-28 20:43 ` Dana Carson [this message]
1991-03-27 21:34 ` Jim Showalter
1991-03-28 2:54 ` Michael Feldman
1991-03-29 3:28 ` Jim Showalter
1991-03-27 3:12 ` Jim Showalter
1991-03-27 21:32 ` Initialization Paul Stachour
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox