comp.lang.ada
 help / color / mirror / Atom feed
From: "ldries46" <bertus.dries@planet.nl>
Subject: Constant Record
Date: Sat, 8 Dec 2018 16:58:22 +0100
Date: 2018-12-08T16:58:22+01:00	[thread overview]
Message-ID: <5c0bea20$0$25694$e4fe514c@news.kpn.nl> (raw)

I have  simple record for instance

Type alpha is record
    element1 : integer;
    element2 : double_float;
end record;

apart from calculating thins with the record I do neen som constants of the 
record
  that could be:
   element1 must be 5
   element 2 must de 107.546

and another
element1 must be -2 and the other 547.24

Is it possible to make a constant by
declaring something like
   rt : constant alpha :=(5, 107.547)   and
   xt : constant apha :=( -2, 547.547)

This would be nice 


             reply	other threads:[~2018-12-08 15:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-08 15:58 ldries46 [this message]
2018-12-08 16:14 ` Constant Record J-P. Rosen
2018-12-09  7:20   ` ldries46
2018-12-09  8:34     ` Simon Wright
2018-12-09 20:51       ` julian.fondren
2018-12-09 21:21     ` Simon Wright
2018-12-10 18:39       ` Dennis Lee Bieber
replies disabled

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