GNU bug report logs - #14869
fl+ and fl* should also accept 0 arguments

Previous Next

Package: guile;

Reported by: Göran Weinholt <goran <at> weinholt.se>

Date: Mon, 15 Jul 2013 12:45:01 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Göran Weinholt <goran <at> weinholt.se>
To: 14869 <at> debbugs.gnu.org
Subject: bug#14869: fl+ and fl* should also accept 0 arguments
Date: Mon, 15 Jul 2013 14:41:02 +0200
[Message part 1 (text/plain, inline)]
Hello schemers,

the fl+ and fl* procedures from (rnrs) should also accept 0 arguments,
with flonum return values analogous to (+) and (*):

scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (fl*)
;;; <stdin>:2:0: warning: possibly wrong number of arguments to `fl*'
rnrs/arithmetic/flonums.scm:111:2: In procedure fl*:
rnrs/arithmetic/flonums.scm:111:2: Wrong number of arguments to #<procedure fl* (fl1 . args)>

The entries in r6rs-lib say "(fl+ fl1 ...)" and "(fl* fl1 ...)". Tested
with Guile 2.0.9.22-7e816-dirty.

Regards,

-- 
Göran Weinholt <goran <at> weinholt.se>
"On your own and though you feel alone you are alive.
Don't you know it's just another day." -- You Are Alive, Fragma
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 12 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.