GNU bug report logs -
#48765
`member` from (scheme base) returns empty list instead of #f when item is not found
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48765 in the body.
You can then email your comments to 48765 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#48765
; Package
guile
.
(Mon, 31 May 2021 21:10:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Arvydas Silanskas <nma.arvydas.silanskas <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Mon, 31 May 2021 21:10:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Default `member` works fine:
$ guile
> (member 'a '(b))
$1 = #f
However, using scheme base it returns empty list
$ guile --r7rs
> (import (scheme base))
> (member 'a '(b))
$1 = ()
Other functions (memq, memv) seem to work fine.
I am using version 3.0.5 as distributed by debian bullseye
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#48765
; Package
guile
.
(Mon, 31 May 2021 21:45:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 48765 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
In git main it appears to work but with a warning:
$ guile --r7rs
GNU Guile 3.0.7.13-c1fd55-dirty
...
scheme@(guile-user)> (import (scheme base))
scheme@(guile-user)> (member 'a '(b))
WARNING: (guile-user): imported module (scheme base) overrides core
binding `member'
$1 = #f
scheme@(guile-user)> (member 'a '(b a))
$2 = (a)
-Dale
-----------------------------------------From: "Arvydas Silanskas"
To: 48765 <at> debbugs.gnu.org
Cc:
Sent: Monday May 31 2021 5:10:12PM
Subject: bug#48765: `member` from (scheme base) returns empty list
instead of #f when item is not found
Default `member` works fine:
$ guile
> (member 'a '(b)) $1 = #f
However, using scheme base it returns empty list
$ guile --r7rs
> (import (scheme base))
> (member 'a '(b))
$1 = ()
Other functions (memq, memv) seem to work fine.
I am using version 3.0.5 as distributed by debian bullseye
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#48765
; Package
guile
.
(Tue, 01 Jun 2021 00:50:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 48765 <at> debbugs.gnu.org (full text, mbox):
On 31.05.2021 23:44, dsmich <at> roadrunner.com wrote:
> In git main it appears to work but with a warning:
>
> $ guile --r7rs
> GNU Guile 3.0.7.13-c1fd55-dirty
> ...
>
> scheme@(guile-user)> (import (scheme base))
> scheme@(guile-user)> (member 'a '(b))
> WARNING: (guile-user): imported module (scheme base) overrides core binding `member'
> $1 = #f
> scheme@(guile-user)> (member 'a '(b a))
> $2 = (a)
>
>
> -Dale
>
>
> -----------------------------------------
>
> From: "Arvydas Silanskas"
> To: 48765 <at> debbugs.gnu.org
> Cc:
> Sent: Monday May 31 2021 5:10:12PM
> Subject: bug#48765: `member` from (scheme base) returns empty list instead of #f when item is not found
>
> Default `member` works fine:
>
> $ guile
>> (member 'a '(b)) $1 = #f
>
> However, using scheme base it returns empty list
> $ guile --r7rs
>> (import (scheme base))
>> (member 'a '(b))
> $1 = ()
> Other functions (memq, memv) seem to work fine.
> I am using version 3.0.5 as distributed by debian bullseye
The fix for this was part of the 3.0.6 release. :-)
Older report on the same bug:
https://bugs.gnu.org/43304
The warning can be safely ignored, and I believe it won't appear
when writing an R7RS library using 'define-library'.
Closing this report but feel free to ask further questions.
--
Taylan
Reply sent
to
Rob Browning <rlb <at> defaultvalue.org>
:
You have taken responsibility.
(Fri, 16 Jul 2021 02:23:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Arvydas Silanskas <nma.arvydas.silanskas <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 16 Jul 2021 02:23:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 48765-done <at> debbugs.gnu.org (full text, mbox):
Taylan Kammer <taylan.kammer <at> gmail.com> writes:
> Closing this report but feel free to ask further questions.
Looks like the first attempt didn't take. Trying again.
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 13 Aug 2021 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 308 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.