我创建了一个类型:
我想以这种方式显示我的数组。
packages MyTypes.Type_A is
subtype Counter_Type is Integer range 0 .. 15;
type Array_Counter_Type is record
Counter_01 : Counter_Type ;
Counter_02 : Counter_Type ;
Counter_03 : Counter_Type ;
Counter_04 : Counter_Type ;
end record;
end MyTypes.Type_A;
我想以这种方式显示我的数组。
MyArray : Array_Counter_Type;
print ( MyTypes.Type_A.Array_Counter_Type'Image (MyArray));
但我遇到了错误:
前缀 og 的 "Image" 属性必须是标量类型
我该怎么办?是否可以“定制”Image
,将分隔符“-”分割的4个计数器连接起来?