GNU bug report logs -
#40294
Documentation for arity procedures doesn't match behavior
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Interaction showing the problem
$ guile
GNU Guile 2.2.6
Copyright (C) 1995-2019 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (use-modules (system vm program))
scheme@(guile-user)> program-arities
ERROR: Unbound variable: program-arities. ; should be defined
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user)> (arity:nreq +) ; 0 arguments required, correct
$1 = 0
scheme@(guile-user)> (arity:rest? +) ; rest argument, correct
$2 = #f
scheme@(guile-user)> (arity:nreq car) ; 1 argument required, bad
$3 = 0
scheme@(guile-user)> (program-arguments-alist car) ; correct
$4 = ((required _) (optional) (keyword) (allow-other-keys? . #f) (rest .
#f))
scheme@(guile-user)>
The same thing happens in Guile 3, and on both Mac and Linux.
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 30 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.