[stringtemplate-interest] Template instance lifecycle ,NET

Sam Harwell sam at tunnelvisionlabs.com
Wed Jan 25 06:46:26 PST 2012


A call to Write should not change the state of the template. Assuming that
the properties and getters of arguments you pass to the templates do not
have side effects (outside of the ST4 library), you should be able to call
Write as many times as you want with identical results each time.

 

--

Sam Harwell

Owner, Lead Developer

Description: Description: C:\Users\sam\Documents\Work\TVL\tvl_logo_small.png

http://tunnelvisionlabs.com <http://tunnelvisionlabs.com/> 

 

From: James P. Moring [mailto:jmoring at gmail.com] 
Sent: Wednesday, January 25, 2012 7:25 AM
To: stringtemplate-interest at antlr.org
Subject: [stringtemplate-interest] Template instance lifecycle ,NET

 

It appears to me (from trial and error) that one can only call Write on a
Template instance once and must get a new instance before calling again. Is
this correct? On the second call ,after a successful first call, my error
listener receives errors about not being able to find variables.

Thanks
Jim

Using StringTemplate .NET 4.0.4  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20120125/5f2694b2/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2620 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20120125/5f2694b2/attachment-0001.png 


More information about the stringtemplate-interest mailing list