<table><tr><td style="">rjvbb added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15532">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>We could activate <tt style="background: #ebebeb; font-size: 13px;">-Wunreachable-code</tt> so the compiler tells you where <tt style="background: #ebebeb; font-size: 13px;">break</tt> isn't needed.</p></blockquote>
<p>Evidently I was talking about a general principle, not about introducing a dependency on the compiler telling you what (not) to do. If I wanted that I'd be coding in Modula-2 ...</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>C inherits PlainText inherits Octetstream -> C is-a PlainText is-a<br />
Octetsteam. So e.g. any handlers (like viewers) of a given format can also<br />
handle files of a format that inherits from it.</p></blockquote>
<p>But those viewers cannot be expected to handle all specifics of a further evolved format, can they now? Despite all its differences C++ still has a lot in common with C, and formatting it as C is better than formatting as plain text, no?<br />
I know the s-m-i entries talk about "subclass-of" (which to me in fact suggests the opposite, i.e. subset of) but Qt translates that to inheritance which I think is fine. And describes the situation exactly; C++ and ObjC aren't called D++ and ObjD for a reason after all ;)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15532">https://phabricator.kde.org/D15532</a></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop, kossebau, kfunk<br /><strong>Cc: </strong>aaronpuchert, kfunk, pino, kossebau, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>