GNU bug report logs - #10388
Assoc list confusion in set-procedure-properties!

Previous Next

Package: guile;

Reported by: Mike Gran <spk121 <at> yahoo.com>

Date: Wed, 28 Dec 2011 09:00:02 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mike Gran <spk121 <at> yahoo.com>
To: Bug Guile <bug-guile <at> gnu.org>
Subject: Assoc list confusion in set-procedure-properties!
Date: Tue, 27 Dec 2011 15:14:55 -0800 (PST)
Hi-
 
In Guile 2.0.2, scm_set_procedure_properties (when SCM_ENABLE_DEPRECATED)
has a call to scm_assq where the KEY and ALIST parameters are reversed.
 
To demonstrate, try this
> (define (func x) #t)
> (set-procedure-properties! func (procedure-properties func))
 
ERROR: In procedure assq: Wrong type argument in position 2
(expecting association list): arity
 
Thanks,
 
Mike Gran




This bug report was last modified 13 years and 198 days ago.

Previous Next


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