I'm using 3.2... from file: StringTemplate-3.2-2009-06-28.7z<br><br>When I look at the version on Antlr3.StringTemplate, it states "3.1.3.6002"<br><br>I've removed and re-added several times... I get the same result.<br>
<br><br>I setup a renderer for integers and ST is passing through the weird numbers, so I suppose that it is a problem with reading off the int from DateTime...<br><br clear="all">Dustin Lambert<br><br>
<br><br><div class="gmail_quote">On Tue, Aug 4, 2009 at 2:22 PM, Sam Harwell <span dir="ltr"><<a href="mailto:sharwell@pixelminegames.com">sharwell@pixelminegames.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">When you say you were testing the latest beta, were you talking
about mine (3.2) or the one previously (before last weekend) posted as the “latest
beta (3.1).” :)</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Sam</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:stringtemplate-interest-bounces@antlr.org" target="_blank">stringtemplate-interest-bounces@antlr.org</a>
[mailto:<a href="mailto:stringtemplate-interest-bounces@antlr.org" target="_blank">stringtemplate-interest-bounces@antlr.org</a>] <b>On Behalf Of </b>Dustin
A. Lambert<br>
<b>Sent:</b> Tuesday, August 04, 2009 6:19 AM<br>
<b>To:</b> <a href="mailto:stringtemplate-interest@antlr.org" target="_blank">stringtemplate-interest@antlr.org</a><br>
<b>Subject:</b> [stringtemplate-interest] Current C# Dev Version</span></p>
</div><div><div></div><div class="h5">
<p> </p>
<p style="margin-bottom: 12pt;">Greetings,<br>
<br>
I've been testing the latest C# beta and discovered a problem...<br>
<br>
If I set a template parameter to an object of System.DateTime like so:<br>
var master = Global.Templates.GetInstanceOf("master");<br>
master.SetAttribute("Today", System.DateTime.Now);<br>
<br>
And then in the template do something like this:<br>
<p>&copy; 2008- $Today.Year$ . All rights reserved.</p><br>
<br>
$Today.Year$ comes out as a weird number... i.e. "© 2008- 10540 "<br>
<br>
I checked for custom renderers and did not find any..<br>
?master.GetAttributeRenderer(typeof(DateTime))<br>
null<br>
<br>
?master.GetAttributeRenderer(typeof(int))<br>
null<br>
<br>
Any suggestions?<br>
<br>
Thanks!<br>
<br clear="all">
Dustin Lambert</p>
</div></div></div>
</div>
</blockquote></div><br>