Ada: packing record with variable sized array
问题 I am looking to create a packed record that can hold an array the varies in length from 5 - 50 elements. Is it possible to do this in such a way that the record can be packed with no wasted space? I will know how many elements will be in the array when I go to create the record. -- the range of the array type Array_Range_T is Integer range 5 .. 50; -- the array type type Array_Type_T is array range (Array_Range_T) of Integer; -- the record type My_Record_T (Array_Length : Integer := 5) is