To be fair:
On Apr 9 2012, John Cowan wrote:
But, blast it, if little Chibi can include a full numeric tower, why
should Chicken position itself with RScheme and VX, plus a bunch of
broken Schemes that always return a fixnum when multiplying fixnums,
even if it's the wrong one?
See
Jörg F. Wittenberger scripsit:
jfw@ajax:~$ fshell
RScheme (v0.7.3.4-b7u, 2007-05-30)
Copyright (C) 1995-2005 Donovan Kolbly d.kol...@rscheme.org
RScheme comes with ABSOLUTELY NO WARRANTY.
type ,warranty for details; type ,help for some help
top[0]=(define phi 3.1415926)
value := phi
Is this a bug in chicken?
(rational? 6/10) = #f
Also
(* 1.0 5/2)
produces
Error: (*) bad argument type: 5/2
Call history:
syntax (* 1.0 5/2)
eval(* 1.0 5/2)
CHICKEN
(c)2008-2011 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version
On Mon, Apr 09, 2012 at 09:00:10PM +0100, Mark Carter wrote:
Is this a bug in chicken?
(rational? 6/10) = #f
Chicken by itself doesn't support ratnums. You'll need the
numbers egg to get the full numeric tower (including arbitrarily
large numbers and complex numbers).
Also
(*
On Mon, 2012-04-09 at 21:00 +0100, Mark Carter wrote:
Is this a bug in chicken?
(rational? 6/10) = #f
Also
(* 1.0 5/2)
produces
Error: (*) bad argument type: 5/2
[...]
Hello,
this looks strange. While CHICKEN does not support exact fractions out
of the box, reading a number
Thomas Chust scripsit:
One way I can reproduce your problems is by loading but not importing
the numbers extension library, which adds support for arbitrary
precision arithmetic and exact fractions to CHICKEN:
Nice catch. A warning should be put in the numbers egg documentation
not to do
If I want to reproduce this, do I need to type in anything else?
It doesn't happen here.
After some experimenting, the statistics eggs seems to introduce some
peculiarity. Here's a session:
--
#;1 (* 1.0 5/2)
Warning: cannot
On Mon, Apr 09, 2012 at 09:39:06PM +0100, Mark Carter wrote:
If I want to reproduce this, do I need to type in anything else?
It doesn't happen here.
After some experimenting, the statistics eggs seems to introduce some
peculiarity. Here's a session:
Peter Bex scripsit:
The only way to truly fix this is to add numbers to core; the way it
extends the reader is a bit of a hack and it doesn't truly replace
the procedures from the Scheme module. Even if it did, compiled code
often calls C functions directly which bypasses any overwriting the