www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 847] New: c++ vs d comparsion cleanups

http://d.puremagic.com/issues/show_bug.cgi?id=847

           Summary: c++ vs d comparsion cleanups
           Product: D
           Version: 0.177
          Platform: PC
               URL: http://www.digitalmars.com/d/cpptod.html
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: braddr puremagic.com


"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?


-- 
Jan 14 2007