一切源自虚表吧。去掉虚表的c++就可以安全的做内核开发了吧,一切都手动处理。
编译器就不能禁用虚表?
【 在 hgoldfish 的大作中提到: 】
:
: "LOL," was his response. "C++ solves _none_ of the C issues, and only makes things worse. It really is a crap language.
:
: "For people who don't like C, go to a language that actually offers you something worthwhile. Like languages with memory safety and [which] can avoid some of the dangers of C, or languages that have internal GC [garbage collection] support and make memory management easier.
:
--
FROM 124.64.19.*