Say I have a type
type Record_T is
record
VAR1 : integer := 1;
VAR2 : string := "";
end record;
If I want to initialize a constant variable of this type, I can do it a few ways:
Null_Record : constant Record_T := (1, "");
Null_Record : constant Record_T := Record_T'(1, "");
but this forces me to specify the default values, when I already previously specified them.
I've tried all of the following, to no avail
Null_Record : constant Record_T := ();
Null_Record : constant Record_T := Record_T'();
Null_Record : constant Record_T;
But there has to be some way to do so? At least, I'd be very surprised if Ada lacked that capability.