C ++ 0x垃圾收集 [英] C++0x Garbage Collection

查看:51
本文介绍了C ++ 0x垃圾收集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读(或至少是谷歌搜索)有关可选垃圾收集的可能性添加到C ++ 0x的可能性。有很多神话和

以及非常少的详细信息。


这项工作是基于图书馆还是基于语言的,并且会以它为基础
托管C ++的
?然后当然有更精细的技术问题(特别是由于指针滥用)。用于C ++的GC

只是一个白日梦,或者委员会中有很多工作要实现

吧。

I have been reading (or at least googling) about the potential addition
of optional garbage collection to C++0x. There are numerous myths and
whatnot with very little detailed information.

Will this work be library based or language based and will it be based
on that of managed C++? Then of course there are the finer technical
questions raised (especially due to pointer abuse). Is a GC for C++
just a pipe dream or is there a lot of work in the committee to realise
it.

推荐答案

2006年6月23日23:49:30 -0700,Goalie_Ca <去****** @ gmail.com>写道:
On 23 Jun 2006 23:49:30 -0700, "Goalie_Ca" <go******@gmail.com> wrote:
我一直在阅读(或至少谷歌搜索)有关可选垃圾收集到C ++ 0x的潜在补充。有很多神话和其他很少的详细信息。
I have been reading (or at least googling) about the potential addition
of optional garbage collection to C++0x. There are numerous myths and
whatnot with very little detailed information.




C ++不需要垃圾收集,因为它提供了更好的东西:

使用析构函数进行确定性资源管理。你应该用''RAII'来搜索

而不是''垃圾收集''。实际上,RAII是C ++的独特销售主张。将GC引入C ++只会使它变得更糟糕的Java或C#。


祝福,

Roland Pibinger


Roland Pibinger写道:
Roland Pibinger wrote:
2006年6月23日23:49:30 -0700,Goalie_Ca <去****** @ gmail.com>写道:
On 23 Jun 2006 23:49:30 -0700, "Goalie_Ca" <go******@gmail.com> wrote:
我一直在阅读(或至少是谷歌搜索)有关可选垃圾收集到C ++ 0x的潜在补充。有很多神话和其他很少的详细信息。
I have been reading (or at least googling) about the potential addition
of optional garbage collection to C++0x. There are numerous myths and
whatnot with very little detailed information.



C ++不需要垃圾收集,因为它提供了更好的东西:
使用析构函数进行确定性资源管理。你应该用谷歌搜索''RAII''而不是''垃圾收集''。


C++ needs no garbage collection because it offers something better:
deterministic resource management with destructors. You should have
googled for ''RAII'' instead of ''garbage collection''.




或者,直接去这里:

http://upp.sf.net


并查看来源;)


你可以例如从这里开始:


http://upp.sourceforge.net/www



Alternatively, go directly here:

http://upp.sf.net

and take a look at sources ;)

You can e.g. start here:

http://upp.sourceforge.net/www


uppweb


这篇关于C ++ 0x垃圾收集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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