comp.lang.ada
 help / color / mirror / Atom feed
* Constant Record
@ 2018-12-08 15:58 ldries46
  2018-12-08 16:14 ` J-P. Rosen
  0 siblings, 1 reply; 7+ messages in thread
From: ldries46 @ 2018-12-08 15:58 UTC (permalink / 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 


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

end of thread, other threads:[~2018-12-10 18:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-08 15:58 Constant Record ldries46
2018-12-08 16:14 ` 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

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