[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51903] cmn license etc
From: |
Guillaume Le Vaillant |
Subject: |
[bug#51903] cmn license etc |
Date: |
Sun, 21 Nov 2021 17:54:30 +0000 |
bil@ccrma.Stanford.EDU skribis:
> Please do not repair code you don't understand. First,
> sbcl issues a warning, not an error. The warning is
> asinine -- find (in the original form) returns a list;
> I check whether it is nil before setting a portion of it.
> If you change the find statement to add :key #'car, you've
> changed it from memq to assq (in Scheme nomenclature) --
> these are not the same thing. Your test of running
> (cmn treble c4 q) did not hit the code in question, so
> it tested nothing. All you've done is add a bug to
> my code.
If you take a look at the Common Lisp spec [1], you'll see that 'find'
returns an element, not a list. The function returning a list is
'member' [2].
[1] http://www.lispworks.com/documentation/HyperSpec/Body/f_find_.htm
[2] http://www.lispworks.com/documentation/HyperSpec/Body/f_mem_m.htm
signature.asc
Description: PGP signature
- [bug#51903] [PATCH] gnu: Add cl-cmn., jgart, 2021/11/16
- [bug#51903] [PATCH] gnu: Add cl-cmn., Pierre Neidhardt, 2021/11/17
- [bug#51903] [PATCH v2] gnu: Add cl-cmn., jgart, 2021/11/17
- [bug#51903] cmn license etc, bil, 2021/11/17
- [bug#51903] cmn license etc, Guillaume Le Vaillant, 2021/11/21
- [bug#51903] cmn license etc, bil, 2021/11/21
- [bug#51903] cmn license etc, Guillaume Le Vaillant, 2021/11/21
- [bug#51903] cmn license etc, bil, 2021/11/21
- [bug#51903] cmn license etc,
Guillaume Le Vaillant <=
- [bug#51903] cmn license etc, bil, 2021/11/21
- [bug#51903] cmn license etc, jgart, 2021/11/21
- [bug#51903] cmn license etc, Guillaume Le Vaillant, 2021/11/22
- [bug#51903] cmn license etc, bil, 2021/11/22
[bug#51903] [PATCH v3] gnu: Add cl-cmn., jgart, 2021/11/22