|
From: | GNU bug Tracking System |
Subject: | bug#75364: closed (Manual: Alist example does not work) |
Date: | Sat, 04 Jan 2025 23:35:02 +0000 |
Your message dated Sun, 5 Jan 2025 00:34:32 +0100 with message-id <5EE66450-E579-43C1-9518-7C02B5770B40@sarc.name> and subject line Re: bug#75364: Manual: Alist example does not work has caused the debbugs.gnu.org bug report #75364, regarding Manual: Alist example does not work to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@gnu.org.) -- 75364: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75364 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems
--- Begin Message ---Subject: Manual: Alist example does not work Date: Sat, 4 Jan 2025 16:59:15 +0100 User-agent: Mozilla Thunderbird I run
(define capitals '(("New York" . "Albany") ("Oregon" . "Salem") ("Florida" . "Miami")))followed by
(set! capitals (assoc-set! capitals "Florida" "Tallahassee"))and get
"ice-9/boot-9.scm:1676:22: In procedure raise-exception:
In procedure set-cdr!: Wrong type argument in position 1 (expecting mutable pair): ("Florida" . "Miami")
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue."
(In geiser in emacs on Arch)
Warning: In my own code it actually worked on and off.
Work-around: Use
(define capitals (list (cons "New York" "Albany") (cons "Oregon" . "Salem") (cons "Florida" . "Miami")))apparently quoted lists are not mutable!
--- End Message ---
--- Begin Message ---Subject: Re: bug#75364: Manual: Alist example does not work Date: Sun, 5 Jan 2025 00:34:32 +0100
This is a duplicate of https://bugs.gnu.org/32841 which was fixed in 818b879b2e481943340e86dbb5b93f12021206c5.The online manual should update when 3.0.11 is released.Regards
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |