Re: ?floor ?round ?ceiling in 2.3 and 2.4 now: [WAS Re: weird macro params issue]

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Saturday, May 3, 2008, 1:08:15 AM, Klotz, Leigh wrote:

> ?round ?floor and ?ceiling are in 2.4 head and in 2.3 branch as r708.
> You could pull 2.3.13 from r707 if you want to ship 2.3.13 without it,
> but it works for me (see below).
>
> Test Cases:
> Test cases are in 2.4 head and 2.3 branch, including new testcases for
> the existing cast operations as well.  The tests pass ;-)
>
> Implementations:
> The 2.3 implementation is JDK 1.4 source.  The 2.4 implementation is JDK
> 1.5 source.  For the 2.5 implementation, we might want to migrate the
> math to the Arithmetic engine; I noted this in the SVN revision comment,
> but it's not important right now.  The builtin refactoring (or
> un-refactoring, as JR pointed out) is NOT in either 2.3 or 2.4.
>
> Documentation:
> Documentation is only in the 2.3 branch.

I think they rather should be under the numerical built-ins, because
at least ?round is not something that I feel to be an expert stuff.
Ceiling and floor is certainly a bit esoteric, but whatever... expert
stuff rather meant to be stuff for IT/programming "experts", like
?byte or even ?interpret. So I have moved these over.

> I couldn't find the documentation for the 2.4 but maybe I overlooked
> it. docgen is there, but there is no content.

It has a lot of content; something went wrong on your side. BUT, don't
suffer with that... I will forward port it, with the other changes I
made.

> If there's anything I've overlooked or overdone, please let me know.

I wonder why is this called ?ceiling instead of ?ceil, when the other
one is ?floor, not ?flooring.

> Thank you all for giving me the opportunity to help.

Am... how generous we are! :)

> I hope it's useful to you; it is to me.
>
> Leigh.
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Attila Szegedi
> Sent: Friday, May 02, 2008 12:14 PM
> To: Daniel Dekany; FreeMarker-user
> Subject: Re: [FreeMarker-user] weird macro params issue
> Importance: Low
>
> You can release 2.3.13 now, and these things can go in 2.3.14. This
> issue is admittedly a language corner case, and while I'd like to
> address it for sake of determinism, it is by no means urgent. There will
> always be One Last Thing to put in before the release and then it gets
> delayed and delayed... Better to release more frequently, I say;
> 2.3.12 will be three months old by tomorrow.
>
> Attila.
>
> O
>> I plan to wait with 2.3.13 until this and maybe ?round/?floor/?ceil 
>> are added.
>>
>>> Attila.

-- 
Best regards,
 Daniel Dekany


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.