limitedprivatetype.ads

来自「Ada 2005 Training Notes.」· ADS 代码 · 共 27 行

ADS
27
字号
package LimitedPrivateType is   --   -- Declaring type Cell as limited private provides   -- complete control over the type   -- by not allowing Copy/Assignment operation on it   -- Unless Assignment operator is overridden.   --   type LimitedPrivateCell is limited private;   function Constructor (P: Integer) return LimitedPrivateCell;   type PrivateCell is private;private   type LimitedPrivateCell is limited      record         I: Integer;      end record;   type PrivateCell is      record         I: Integer;      end record;   procedure DummyProc;end LimitedPrivateType;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?