velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bert van Brakel <b...@tuaworks.co.nz>
Subject Re: OT: MVC Purity :-)
Date Sun, 18 Jan 2004 00:03:31 GMT
Nathan Bubna wrote:

>Matías Giovannini said:
>  
>
>>What about overriding directives? That way you could have an
>>
>>    
>>
<snip>

>
>in my understanding, it wouldn't be all over the code.  the substance of the
>debate here has been over integer/integer division.  the rest of the floating
>point support patch Peter made is entirely B.C. and seems to have general
>acceptance and support.  the proposed switch should only affect results in the
>case where one integer is divided by another and the "real" :) result would be
>an FP number (e.g.  #set( $foo = 5 / 2 )
>  
>

Could one use #set( $foo = 5 div 2 ) for floating point and  #set( $foo 
= 5 / 2 ) for the current integer implementation?

>  
>
>>On Jan 8, 2004, at 2:29 PM, Nathan Bubna wrote:
>>
>>    
>>
>>>Matías Giovannini said:
>>>      
>>>
>>>>Can't we make math pluggable à la Tools, but with some syntactic sugar
>>>>+ background automagic to integrate it seamlessly with VTL? Perhaps
>>>>with a couple of directives, say #let(<ref> = <expr>) and
>>>>#when(<expr>).
>>>>        
>>>>
>>>ugh.  new directives to do the same things, just for different types?
>>>IMHO,
>>>neither B.C. nor floating point support is worth this confusion and
>>>redundancy.  if it came to it, i'd rather we left things as they are
>>>than do
>>>this.
>>>      
>>>
>
>Nathan Bubna
>nathan@esha.com
>
>
>Bert van Brakel
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Mime
View raw message