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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!news.cs.indiana.edu!arizona.edu!east.pima.edu!rharwood From: rharwood@east.pima.edu Newsgroups: comp.lang.ada Subject: Re: What should this do? Message-ID: <1991Jun28.225209.1@east.pima.edu> Date: 29 Jun 91 05:52:09 GMT References: <1991Jun28.193513.14271@afit.af.mil> List-Id: In article <1991Jun28.193513.14271@afit.af.mil>, dlindsle@afit.af.mil (David T. Lindsley) writes: > [code example deleted for brevity... see same code below] > will result in the attempt to allocate an array constrained to (1..0), > which should raise an exception. At least, that's what it does under > VAX Ada, but not on Verdix. (Both generate warnings.) I compiled the following code on the VAX Ada compiler, ACS-LINKed it, and ran it, all without error: ================== Code Startes Here ================ procedure test_100 is -- This is your definition package: package his_definitions is subtype INDEX is natural range 0..100; type DYN_STRING (SIZE : INDEX := 0) is private; private type DYN_STRING (size : index := 0) is record DATA : string (1..size); end record; end his_definitions; use his_definitions; -- Your declaration here: S : DYN_STRING; begin null; end test_100;