Hi,

> Sorry about the latency.  Business travel tends to leave little time 
> for anything...  inline.

It surely doesn't.

> On Wednesday, March 12, 2003, at 02:12 PM, Peter Romianowski wrote:
> 
> >> On Tuesday, March 11, 2003, at 06:51 AM, Peter Romianowski wrote:
> >>
> >>>> I don't think FP would break existing templates if 
> implemented with
> >>>
> >>> Unfortunately it does. #set ($foo = 5 / 2) will result in
> >> $foo being
> >>> 2.5 instead of 2.
> >>
> >> Well.... Try this :
> >>
> >> System.out.println(5/2);
> >
> > It prints 2.5 ... No, just kidding :)
> 
> LOL.  You should of let me go check again :)

No, really! It prints ... 2 of course.

> Velocity does
> > a lot of things to overcome Java-Strictness, like accessing 
> beans and
> > maps the same way. I mean if we distinguish between Integer, Long, 
> > Float
> > and so on, why don't we distinguish between Maps and Beans too?
> 
> I think that VTL should *not* be Java-centric where we can avoid it.  
> Designers don't know Java, and when you need specifics, you 
> can always 
> toss in a tool. (Take that argument further and.... ;)

Nice, that you see this the same way.

> > In the current version this results in $myValue being -2 
> IIRC. In the
> > new
> > version $myValue would be Integer.MAX_VALUE*2 and a Long.
> 
> Yes - that would be pleasant.  Baffling for someone who has a 
> clue, but 
> we could always badger the tools crew to have a 'JavaMath' package :)

Yes: Use A Tool(tm) the other way around! I like that! :) Once
1.3.1 (final ;) is out, I'll make a formal proposal of the number-stuff
with all the points to be considered (internal type-conversions, overflow-
handling, implementation issues (not using BigDecimal / BigInteger) ...). 
Then we can decide (in ONE thread, please :) what options to take and then
I'll contribute the final version. Ok?

Regards,
Peter
 
> geir
> 
> >
> > Regards,
> >
> > Peter
> >
> >> geir
> >>
> >> -- 
> >> Geir Magnusson Jr                                   203-956-2604(w)
> >> Adeptra, Inc.                                       203-434-2093(m)
> >> [EMAIL PROTECTED]                                   203-247-1713(m)
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >>
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >
> >
> -- 
> Geir Magnusson Jr                                   203-956-2604(w)
> Adeptra, Inc.                                       203-434-2093(m)
> [EMAIL PROTECTED]                                   203-247-1713(m)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to