[phobos] [D-Programming-Language/phobos] 6c289a: Fix unnecessary template bloat in enforce.

Martin Nowak dawg at dawgfoto.de
Mon Jul 23 14:31:49 PDT 2012


On Sun, 22 Jul 2012 05:55:56 +0200, GitHub <noreply at github.com> wrote:

>   Branch: refs/heads/master
>   Home:   https://github.com/D-Programming-Language/phobos
>   Commit: 6c289a89699426c86ddce8a22050c5d7a4057485
>       https://github.com/D-Programming-Language/phobos/commit/6c289a89699426c86ddce8a22050c5d7a4057485
>   Author: jmdavis <jmdavisProg at gmx.com>
>   Date:   2012-07-21 (Sat, 21 Jul 2012)
>
>   Changed paths:
>     M std/exception.d
>
>   Log Message:
>   -----------
>   Fix unnecessary template bloat in enforce.
>
> The version of enforce which takes the file and line number as template
> arguments has been scheduled for deprecation and has been replaced with
> one which takes them as function arguments. The only code that this will
> effect is code which explicitly passes the file or line number to
> enforce.
>
It's probably worth to reevaluate the usefulness of this template special  
case.
http://dlang.org/template.html#TemplateValueParameter


More information about the phobos mailing list