Template question

Sean Kelly sean at f4.ca
Wed Oct 4 13:13:01 PDT 2006


Chad J > wrote:
> I'm trying to write a template that, when instantiated, gives a value 
> that is the same as the last time it was instantiated plus one.

I don't think this is possible.  Once a template is evaluated that's it. 
  Future references to a template do not cause a re-evaluation.


Sean



More information about the Digitalmars-d-learn mailing list