DIP83

From D Wiki
Revision as of 17:00, 1 October 2015 by Nordlow (talk | contribs) (Created page with "{| class="wikitable" !Title: !'''Configurable Assert Diagnostics''' |- |DIP: |83 |- |Version: |1 |- |Status: |Draft |- |Created: |2015-10-01 |- |Last Modified: |{{REVISIONYEAR...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Title: Configurable Assert Diagnostics
DIP: 83
Version: 1
Status: Draft
Created: 2015-10-01
Last Modified: 2015-10-1
Author: Per Nordlöw
Links:

Abstract

Allow for assert's to do pretty printing of its failing expression. Printing is configurable via specific sets of (template) function overloads.

Rationale

Description

This DIP proposes to add library-level configurable diagnostics to failing calls to assert(expr) typically called in unittest-blocks.

Impact

Copyright

This document has been placed in the Public Domain.