comp.lang.ada
 help / color / mirror / Atom feed
* Ada 2012 Corrigendum
@ 2014-09-12  3:26 Shark8
  2014-09-12 11:45 ` Peter Chapin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Shark8 @ 2014-09-12  3:26 UTC (permalink / raw)


Is it possible to add in new aspects, or no?

Two that I think would be useful would be:
(1) "Delayed_Representation" for enumerations which would allow the 
following, which is not currently possible due to freezing:

Package Ex1 is
   -- Statuses for drives.
   Type General_Status is (Unmounted, Standby, Ready, Busy, Unknown)
   with Delayed_Representation;

   -- Statuses for non-removable drives.
   Subtype HD_Status is General_Status range Standby..Unknown;

Private
   For General_Status use (
      Unmounted => 2#0000#,
      Standby   => 2#0001#,
      Ready     => 2#0011#,
      Busy      => 2#0101#,
      Unknown   => 2#1111#
    );
End Ex1;

(2) An aspect indicating a function which is not-only pure, but static 
-- intended to be computed at compile-time; this could, for example, be 
used to make the formulae in the endian-independent paper ( 
http://www.sigada.org/ada_letters/sept2005/Endian-Independent%20Paper.pdf ) 
directly usable.

Or should I submit these as AI entries? (In either case, what should I 
do to get these addressed?)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-10-04  0:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12  3:26 Ada 2012 Corrigendum Shark8
2014-09-12 11:45 ` Peter Chapin
2014-09-12 12:48 ` Dmitry A. Kazakov
2014-09-12 19:09 ` Shark8
2014-09-12 18:51   ` Robert A Duff
2014-09-12 19:08   ` Robert A Duff
2014-10-04  0:32     ` Randy Brukardt

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