【发布时间】:2021-05-15 13:53:32
【问题描述】:
我仍然对all 关键字在一般访问类型中的工作方式感到困惑
两者有什么区别:
type int_access is access all Integer; 到 type int_access is access Integer;
例如:
type int_ptr is access all Integer;
Var : aliased Integer := 1;
Ptr : int_ptr := Var'Access;
代码工作正常,但如果我删除 all 关键字,它会给出一个错误,结果必须是一般访问类型,我必须添加 all。
【问题讨论】: