on 2/14/02 11:40 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> geirm       02/02/14 11:40:00
> 
> Modified:    src/java/org/apache/velocity/runtime/parser/node
>                       ASTNotNode.java
> Log:
> Fix for bug reported by Chris Rousseau <[EMAIL PROTECTED]>
> 
> where
> 
>   #set($foo = !$bar )
> 
> wouldn't work.  I don't think there was ever a reson for not letting
> it be the logical compliment...

Ok, I have a question here:

What if $bar resolves to null? What is the ! of null? Heck, what is the
result of !$bar even if $bar returns a non null? Is it a Boolean?

I think that this syntax is rather confusing and very Perl'ish.

-jon


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to