Bug 847 – c++ vs d comparsion cleanups

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dlang.org
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-01-14T16:16:39Z
Last change time
2019-03-01T12:14:12Z
Keywords
bootcamp
Assigned to
No Owner
Creator
Brad Roberts

Comments

Comment #0 by braddr — 2007-01-14T16:16:39Z
"Base class initialization" I recommend adding a sentence about the differences in vtbl pointer handling during construction. What functions are safe to call during construction and why. "Comparing structs" The D way, lacking any text, feels like it's incomplete. Give the bugs in the obvious c++ implementation, it should explain how D avoids the bug. It's probably also worth noting opCmp for how to do the equivalent of C++'s operator==() (or providing an anchor link to the "Operator overloading" section further down the page. "RAII (Resource Acquisition Is Initialization)" Should talk about scope(xxx) statements as well, since they can eliminate the need for extra classes just for RAII purposes. "Properties" Any reason that the c++ example is one block and the D example is 2 blocks?