[stringtemplate-interest] (no subject)
Jon Nilsson
jonhansnilsson at hotmail.com
Wed Nov 24 21:54:48 PST 2010
Wow, quick reply. Thank you very much. But I'm not sure if I understood you correctly.
Did you mean
1) formal object def in my rectangle template ?
or
2) adding another setAttribute() that can take an arbitrary number of arguments in StringTemplate?
Jon
Subject: Re: [stringtemplate-interest] (no subject)
From: parrt at cs.usfca.edu
Date: Sun, 21 Nov 2010 08:37:21 -0800
CC: stringtemplate-interest at antlr.org
To: jonhansnilsson at hotmail.com
Hi Jon, probably time for a formal object def in the model.Ter
On Nov 20, 2010, at 10:08 PM, Jon Nilsson wrote:It looks like setAttribute() can handle only up to 5 arguments in StringTemplate C# 3.2.
It is causing a problem when I need to do the following: rect.SetAttribute("rectangle.{arrayname, index, x, y, width, height}", "MyArray", 0, 100, 100, 32, 34);
What do you recommend?
According the the documentation: "The various overloads of the setAttribute() method can handle from 1 to 5 arguments. The C# version uses variable-length argument list (using params keyword)." http://www.stringtemplate.org/wiki/display/ST/Expressions
_______________________________________________
stringtemplate-interest mailing list
stringtemplate-interest at antlr.org
http://www.antlr.org/mailman/listinfo/stringtemplate-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20101125/246f95f9/attachment.html
More information about the stringtemplate-interest
mailing list