Checking function parameters in Phobos

Daniel Davidson nospam at spam.com
Thu Nov 21 06:17:45 PST 2013


On Wednesday, 20 November 2013 at 18:30:58 UTC, Dmitry Olshansky 
wrote:
>
> And it decays to the naked type in a blink of an eye. And some 
> function down the road will do the validation again...
>

Not if that function down the road only accepted validated in the 
first place because that is what it needed. Follow the rule - if 
you need validated instance only accept validated type - do not 
try to validate.


More information about the Digitalmars-d mailing list