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.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c319c681003d3e4c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-15 10:31:21 PST Path: bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!howland.reston.ans.net!paladin.american.edu!auvm!COMPUSERVE.COM!73672.2025 Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU Newsgroups: comp.lang.ada Message-ID: <940914130023_73672.2025_DHR31-2@CompuServe.COM> Date: Wed, 14 Sep 1994 09:00:23 EDT Sender: Ada programming language From: Ken Garlington <73672.2025@COMPUSERVE.COM> Subject: Static in 9X Comments: To: "comp.lang.ada" Date: 1994-09-14T09:00:23-04:00 List-Id: I'm trying to work a problem with my Ada vendor, and time is short, so I would appreciate any help I can get in the next day or so. Part of my problem is understanding the definition of "static" in the 9XRM 4.9. Which (if any) of the following are static, and under what conditions/assumptions? (Assume that exceptions are not a factor.) 1. A constant composite value, with static initial values, e.g. type R is record X : INTEGER; Y : INTEGER; end record; REC : constant R := (1,2); -- static? 2. Components of a record/elements of an array, e.g. V : constant INTEGER := REC.X; -- static? 3. A user-written function, e.g. function Z return INTEGER is begin return 0; end; -- static? 4. Type conversions that require manipulation of the form of the data; e.g. X : constant FLOAT := 0.0; Y : constant LONG_FLOAT := LONG_FLOAT(X); -- static? 5. UNCHECKED_CONVERSIONs? Thanks in advance for anyone who can help. Ken Garlington Lockheed Fort Worth Company