C ++模块 - 为什么他们从C ++ 0x中删除?他们以后会回来吗? [英] C++ Modules - why were they removed from C++0x? Will they be back later on?

查看:118
本文介绍了C ++模块 - 为什么他们从C ++ 0x中删除?他们以后会回来吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚发现这个旧的C ++ 0x草稿关于C ++ 0x中的模块。



这个想法是通过仅写入.cpp文件,从而生成当前.h / .cpp系统



这看起来像一个非常好的功能。



但我的问题是:他们为什么从C ++ 0x中删除它?是因为太多的技术困难吗?时间不够?你认为他们会考虑使用C ++的外部版本吗?

解决方案

C ++ Evolution的状态(旧金山旧金山2008),Modules提案被归类为标题为单独的TR:


在发布C ++ 0x之前,这些主题被认为太重要了,太实验性,无法及时完成下一个标准。因此,这些功能将尽快通过技术报告提供。


模块提案尚未准备就绪,等待它会延迟完成C ++ 0x标准。它没有真正被删除,它从来没有被纳入工作文件。


I just discovered this old C++0x draft about modules in C++0x.

The idea was to get out of the current .h/.cpp system by writing only .cpp files which would then generate module files during compilation, which would then in turn be used by the other .cpp files.

This looks like a really great feature.

But my question is: why did they remove it from C++0x? Was it because of too many technical difficulties? Lack of time? And do you think they will consider working on it for an ulterior version of C++?

解决方案

From the State of C++ Evolution (Post San Francisco 2008), the Modules proposal was categorized as "Heading for a separate TR:"

These topics are deemed too important to wait for another standard after C++0x before being published, but too experimental to be finalised in time for the next Standard. Therefore, these features will be delivered by a technical report at the earliest opportunity.

The modules proposal just wasn't ready and waiting for it would have delayed finishing the C++0x standard. It wasn't really removed, it was just never incorporated into the working paper.

这篇关于C ++模块 - 为什么他们从C ++ 0x中删除?他们以后会回来吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆