On 2/14/02 2:51 PM, "Jon Scott Stevens" <[EMAIL PROTECTED]> wrote:

> 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?

A null is 'false' in VTL.  I don�t really like it, but we should be
consistent.
 
> I think that this syntax is rather confusing and very Perl'ish.

You bet.  

-- 
Geir Magnusson Jr.                                     [EMAIL PROTECTED]
System and Software Consulting
"Now what do we do?"


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

Reply via email to