私は現在、(「Ada.Text_IO.Put」)ジェネリック型を印刷しようとしていますが、これは常にそのようなエラーで失敗します。一般的なタイプの印刷方法
missing argument for parameter "Item" in call to "Put" declared at a-tiinio.ads:60, instance at a-inteio.ads:18
expected type "Standard.Integer"
found private type "My_Type" defined at testtype.ads:2
は、これらのエラーは意味をなさないが、私は私の値を印刷する方法を知りません。 次の行は私のジェネリック型を示しています。
generic
type My_Type is private;
with function "+"(Left: My_Type; Right: My_Type) return My_Type;
package TestType is
...
end TestType;
ありがとうございました!