TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

GCC switches from C to C++

142 点作者 Xyzodiac将近 13 年前

8 条评论

parfe将近 13 年前
&#62;&#62;we'd have to get used to using auto_ptr<p>&#62;auto_ptr is broken. We should use shared_ptr instead<p>It has begun!<p>One of the most enjoyable features of C++ is the arguing over which parts of the language should be allowed.
评论 #4388163 未加载
评论 #4387706 未加载
评论 #4389655 未加载
评论 #4387476 未加载
twoodfin将近 13 年前
A useful discussion of the conversion and its motivation in the GCC Wiki:<p><a href="http://gcc.gnu.org/wiki/cxx-conversion" rel="nofollow">http://gcc.gnu.org/wiki/cxx-conversion</a>
评论 #4386996 未加载
评论 #4386976 未加载
thefooest将近 13 年前
this is apalling. The argumets seem to boil down to "I don't like VEC and how hash-tables are done". Oh and the usual bs about interfaces. The result is that now there is a monstrous dependency (a c++ compiler) in place of something that an undergrad can build for a class (a basic C compiler).<p>I wonder what rms thinks of this. Too bad he is not calling the shots in gcc anymore.
评论 #4388459 未加载
arturadib将近 13 年前
"What would Linus do?"
评论 #4386831 未加载
评论 #4388805 未加载
评论 #4387299 未加载
评论 #4389458 未加载
kingmanaz将近 13 年前
It will be interesting to see the OpenBSD project's response to this.
评论 #4386785 未加载
评论 #4386784 未加载
reacweb将近 13 年前
build change to require a C++ compiler is a no go.<p>One of the reasons to install gcc on a machine is the absence of a descent C++ compiler. 20 years ago, the C compiler of Sun was completely broken and we were happy to have gcc.
评论 #4386737 未加载
评论 #4387308 未加载
评论 #4386793 未加载
评论 #4387408 未加载
评论 #4387477 未加载
yason将近 13 年前
The demise of gcc has begun. Not because I don't particularly like C++ but because the folks actually have an interest to gradually start moving a C codebase into C++ as if they didn't have better things to do. Sure, some syntactic things will look cleaner (let's just exclude those that will look uglier for the sake of fairness)--in five years or whenever their transition could be considered complete.
评论 #4388522 未加载
评论 #4389615 未加载
评论 #4388481 未加载
duaneb将近 13 年前
Wow, I honestly never thought I'd see the day.