Proposal: static template(fail)

Jason House jason.james.house at gmail.com
Fri Dec 14 07:57:17 PST 2007


Janice Caron Wrote:

> I believe that under the current system, if the (T:whatever) rule
> passes, the template is deemed to have matched, and nothing can
> subsequently change its mind. Any compile error encountered from there
> on is considered a real compile error. And I think that's correct
> behavior.
> 
> The "template(fail)" suggestion would add a way to say, after the
> event, "I've changed my mind. Please consider this unmatched after
> all".


IMHO, this should have been part of the original post.  Your suggestion now sounds much better to me.  Of course, I don't like the proposed syntax.



More information about the Digitalmars-d mailing list