[stringtemplate-interest] Question about ASTExpr.TestAttributeTrue
Sam Harwell
sharwell at pixelminegames.com
Fri Mar 20 12:11:35 PDT 2009
For enumerable items (do you call them iterable in java?), you check if
the length is > 0. Since a string implements IEnumerable<char> in .NET,
I had to make sure I handle it as a null-check. :)
-----Original Message-----
From: Terence Parr [mailto:parrt at cs.usfca.edu]
Sent: Friday, March 20, 2009 2:09 PM
To: Sam Harwell
Cc: stringtemplate-interest at antlr.org
Subject: Re: [stringtemplate-interest] Question about
ASTExpr.TestAttributeTrue
True. it's present. IF always tests the presence or absence of an
attribute, unless of course it's Boolean. Then, I have to test the
value.
Ter
On Mar 20, 2009, at 12:03 PM, Sam Harwell wrote:
> Is the non-null empty string ("") true or false?
>
> Thanks,
> Sam :)
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list