From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,803df5f3f60558d5 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Uninitialized "out" parameters Date: 1996/07/21 Message-ID: #1/1 X-Deja-AN: 169435894 references: <31EEACDA.64880EEB@sage.inel.gov> <4sq614$kai@mulga.cs.mu.OZ.AU> <4stagp$3vg@mulga.cs.mu.OZ.AU> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-07-21T00:00:00+00:00 List-Id: Fergus said "Similarly, in a dynamically typed Ada-like language, the code procedure x is m : integer; n : some_other_type; begin (big chunk of code) m := n; end; causes a run-time type error if and only if the big chunk of code halts. Of course, Ada uses static type checking, rather than dynamic typing; they report some "spurious" type errors such as for the example above. There's no reason why Ada compilers couldn't do the analagous sort of thing for uninitialized variables." Yes, but Ada is not dyunamically typed, it uses a decidable static type system, and there are VERY good reasons why comparable static systems cannot be designed for dealing with the uninitialized variable problem (please reread carefully my example of the 2 gig array in an allocate on demand environment -- and response to how your decidable system would accomodate this requirement). dp