nested - 使用嵌套包类型作为类型的私有部分声明
问题描述
package P is
type T is private;
private
package NP is
type T is null record;
end NP;
end P;
是否可以使用 NP.T 作为 PT 的完整声明?
解决方案
您可以做的是P.T
按照NP.T
如下所示的方式声明。
广告
package P is
type T is private;
private
package NP is
type T is null record;
end NP;
type T is new NP.T;
end P;
推荐阅读
- css - 如何在 CSS 中将多行标题与标题基线对齐
- apache-spark - 如何在python中使用spark找出每个月的总金额
- raku - 如何重新加载 REPL 中使用的模块?
- react-native - 反应原生地图,通过点击标记在滚动视图卡上重新定位
- eclipse - Runner eclipse插件不显示未分类的文件夹
- java - 遍历列表并将 Callables 提交给 ExecutorService
- c# - 为什么在尝试使用实体框架执行查询时指定的强制转换无效?
- ruby-on-rails - SSL_connect 返回=1 errno=0 状态=错误:证书验证失败
- javascript - PhantomJS 中的滚动页面
- git - 如何从旧提交中恢复文件?