comp.lang.ada
 help / color / mirror / Atom feed
From: Ken Garlington <73672.2025@COMPUSERVE.COM>
Subject: Static in 9X
Date: Wed, 14 Sep 1994 09:00:23 EDT
Date: 1994-09-14T09:00:23-04:00	[thread overview]
Message-ID: <940914130023_73672.2025_DHR31-2@CompuServe.COM> (raw)

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



             reply	other threads:[~1994-09-14 13:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-14 13:00 Ken Garlington [this message]
1994-09-15 13:37 ` Static in 9X Robert Dewar
     [not found] <940914130023_73672.2025_DHR31-2@compuserve.com>
1994-09-15 15:05 ` Tucker Taft
1994-09-16 10:26   ` Tucker Taft
  -- strict thread matches above, loose matches on Subject: below --
1994-09-16  3:03 Ken Garlington
1994-09-17  3:13 ` Robert Dewar
1994-09-19 23:40 Ken Garlington
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox