Google


   


You are here: CodeIdol.com > C++ > C++ Coding Standards: 101 Rules, Guidelines, and Best Practices > Prefer Compile And Link Time Errors To Run Time Errors

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

C++ Coding Standards: 101 Rules, Guidelines, and Best Practices



14. SummaryDiscussionExamplesExceptionsReferences...



Don't put off 'til run time what you can do at build time: Prefer to write code that uses the compiler to check for invariants...

read more: Summary


The C++ language offers many opportunities to "accelerate" error detection by pushing it to compilation time. Exploiting these static checking capabilities offers you many advantages,...

read more: Discussion


There are several instances in which you can replace run-time checks with compile-time checks. Example 1: Compile-time Boolean conditions. If you are testing for compile-time Boolean...

read more: Examples


Some conditions cannot be checked at compile time and require run-time checks. For these, prefer to use assertions to detect internal programming errors (see Item...

read more: Exceptions


[Alexandrescu01] §3 • [Boost] • [Meyers97] §46 • [Stroustrup00] §2.• [Sutter02] §4 • [Sutter04] §2, §19...

read more: References

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

You are here: CodeIdol.com > C++ > C++ Coding Standards: 101 Rules, Guidelines, and Best Practices > Prefer Compile And Link Time Errors To Run Time Errors


ADBRITE ads links
   
Related tags







Popular Categories
Unix books and guides

AJAX popular information
C# language guides
Windows books and cookbooks

.......








Business Key Top Sites

be number one
rate your site




    С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.

    Русский Polski Francais Deutsch
    support sitemap terms

© CodeIdol Labs, 2007 - 2009