我收到一個錯誤,我找不到任何文檔來解釋需要在我的代碼中修復哪些內容。代碼是:「完整視圖聲明必須出現在私有部分」的說明
type BinarySearchTreePoint is limited private;
type Node;
type BinarySearchTreePoint is access Node;
type Node is
record
Llink, Rlink : BinarySearchTreePoint;
Ltag, Rtag : Boolean; --True indicates pointer to lower level,
-- False a thread.
Info : Customer;
end record;
我得到的錯誤是declaration of full view must appear in private part
。它將此錯誤指向type BinarySearchTreePoint is access Node;
行,並且我不確定錯誤消息的含義。
假如把它放在私處包裹。沒有必要聲明私有類型,然後發佈有關它的詳細信息。 –
參見[*§3.10.1不完整類型聲明*](http://www.ada-auth.org/standards/12rm/html/RM-3-10-1.html)。 – trashgod
@BrianDrummond我不知道如何? '類型BinarySearchTreePoint是有限的私人訪問節點;'?像那樣的東西? –