首页> 外文期刊>MSDN Magazine >Netting C++: Resource Cleanup
【24h】

Netting C++: Resource Cleanup

机译:网络C ++:资源清理

获取原文
获取原文并翻译 | 示例

摘要

In my last column, we successfully wrapped my native Text Query Language (TQL) application for processing natural language texts. That is, the application executed correctly, but I did make a number of subtle program design errors that I'd like to correct in this column. For those who haven't incised the code in memory, Figure 1 shows how we left it. The first problem is pretty trivial, but it would be embarrassing should the class be made generally available because all types within a module default to internal scope. That is, they can't be seen from outside the module. This is a good default because it prevents the global namespace of the application from being polluted by module-only types.
机译:在上一专栏中,我们成功包装了本机文本查询语言(TQL)应用程序,用于处理自然语言文本。也就是说,应用程序正确执行,但是我确实犯了一些微妙的程序设计错误,我希望在本专栏中进行纠正。对于那些尚未在内存中切割代码的人,图1显示了我们如何保留它。第一个问题相当琐碎,但是如果该类可以普遍使用,那将是令人尴尬的,因为模块内的所有类型都默认为内部作用域。也就是说,无法从模块外部看到它们。这是一个很好的默认设置,因为它可以防止应用程序的全局名称空间受到纯模块类型的污染。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号