如果您是在1997年之前开始学习编程,那么可能您学习的第一种编程语言没有提供透明的垃圾收集。
If you learned to program before 1997, chances are that the first programming language you learned didn't provide transparent garbage collection.
那些支持析构函数或垃圾收集器的语言通过在C接口上作一层封装有助于降低这个问题发生的概率。
Programming languages that support destructors or have a garbage collector may mitigate this problem by making a wrapper over the C interface.
在非垃圾收集语言中需要避免两个主要的内存管理危险:内存泄漏和悬空指针。
There are two major memory-management hazards to avoid in non-garbage-collected languages: memory leaks and dangling Pointers.
应用推荐