LWN.net Logo

Why learn C? (O'Reilly Radar)

Why learn C? (O'Reilly Radar)

Posted Jul 4, 2012 12:39 UTC (Wed) by dgm (subscriber, #49227)
In reply to: Why learn C? (O'Reilly Radar) by jwakely
Parent article: Why learn C? (O'Reilly Radar)

>> In C++ you learn piles of caveats to the base language, "don't throw an exception from a constructor",

>Nonsense.

Maybe just misinformed. In fact, exceptions are the only way to propagate errors in constructors, you cannot return an error code. But I guess what he really meant was "destructor".


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds