chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Using fmt and numbers eggs together


From: Alex Shinn
Subject: Re: [Chicken-users] Using fmt and numbers eggs together
Date: Tue, 5 Jan 2016 21:52:56 +0900

On Sun, Jan 3, 2016 at 1:48 AM, Peter Bex <address@hidden> wrote:
On Sat, Jan 02, 2016 at 11:40:47AM -0500, Sudarshan S Chawathe wrote:
> I seem to get incorrect output and errors in some cases when using the
> fmt and numbers eggs together.  A brief transcript illustrating the
> problem is included below.  In brief:
>
>   * (fix 30 2/3) doesn't behave as indicated in the docs.
>
>   * Some large numbers cause errors.
>
> When not using the numbers egg, fmt's behavior seems to be as expected
> (given Chicken's implementation of numbers without the 'numbers' egg).
>
> Is this a known limitation of fmt with 'numbers'?

I'm afraid so.  As far as I know the only way to fix this is to add a
hard dependency on numbers to fmt.  This may not be desirable depending
on what you're using fmt for.

This is a result of the second class treatment that extended numbers get,
and will be fixed in CHICKEN 5, due to integration of the full numeric
tower into core.

Note this is in contrast to how 'numbers' used to work, where
loading it overloaded all numeric operations globally.  The fmt
documentation still reflects this previous behavior.

-- 
Alex


reply via email to

[Prev in Thread] Current Thread [Next in Thread]