Against enforce()

Kagamin spam at here.lot
Thu Mar 17 09:28:51 PDT 2011


bearophile Wrote:

> Steven Schveighoffer:
> 
> > The only problem I see with it is the inline-killing.
> 
> Please don't ignore the purity-killing :-)

void checkArgument(bool condition, const char[] msg = null, string file = __FILE__, int line = __LINE__) pure
{
  if(!condition)throw new ArgumentException(msg,file,line);
}

will this work?


More information about the Digitalmars-d mailing list