Proposal: static template(fail)

BCS ao at pathlink.com
Fri Dec 14 11:09:25 PST 2007


what would this do?:

template Foo(T)
{
  static if(logic1!(T)) template(fail);
}

template Foo(T)
{
  static if(logic2!(T)) template(fail);
}

from a programers level, it might be valid. My though is (an wow could this 
be costly) try all cases*, if there isn't exactly one match, error.


* Walter's not going to like that for performance reasons.





More information about the Digitalmars-d mailing list