of "Conditional Implementation" vs "Assertive Input Validation"

Dmitry Olshansky dmitry.olsh at gmail.com
Mon Jul 23 07:23:44 PDT 2012


On 23-Jul-12 18:07, Simen Kjaeraas wrote:
> On Mon, 23 Jul 2012 15:49:43 +0200, Philippe Sigaud
> <philippe.sigaud at gmail.com> wrote:
>
>> On Mon, Jul 23, 2012 at 3:39 PM, Dmitry Olshansky
>> <dmitry.olsh at gmail.com> wrote:
>>
>>> Will explode every time a constraint is tested?
>>> After all constraints do fail so that other function is picked up and
>>> they
>>> are supposed to.
>>
>> Damn, you're right.
>
> To be fair, it explodes as often as the if (isInputRange!T){static
> assert(!isInfinite!T);} does.
>

Right. It's just I did something similar to Philippe stuff previously 
and this somehow was an unpleasant surprise for me.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list