3
在最近的一個問題中,我詢問了關於'
的操作,並瞭解到它用於獲取某些類型的語言定義的「屬性」。從我可以收集的信息來看,沒有辦法爲您的類型創建自己的屬性。Ada:使用函數重命名屬性?
function Image(C: Ada.Containers.Count_Type) return String renames
Ada.Containers.Count_Type'Image;
這是什麼做的:
我碰到這行代碼,我不明白來的?
有趣相反,有一些情況(重命名-as-body,見http://www.ada-auth.org/standards/12rm/html/RM-8-5-4.html#p5),其中應該是'function Image(C:Ada.Containers .Count_Type'Base)return String'(見http://www.ada-auth.org/standards/12rm/html/RM-K-2.html#p88)。 –