Template question

Chad J "gamerChad\" at spamIsBad gmail.com
Wed Oct 4 14:27:16 PDT 2006

Sean Kelly wrote:
> 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

Oh, bummer.  Is there another way to do what I want to do at 
compile-time, besides just manually writing the numbers in?

More information about the Digitalmars-d-learn mailing list