GNU bug report logs - #28837
Guile 2.2.2: Loading srfi-1 with merge-generics breaks "map"

Previous Next

Package: guile;

Reported by: Andrew Erlanger <andrew.erlanger <at> gmail.com>

Date: Sat, 14 Oct 2017 17:39:02 UTC

Severity: normal

Full log


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

From: David Pirotte <david <at> altosw.be>
To: Andrew Erlanger <andrew.erlanger <at> gmail.com>
Cc: 28837 <at> debbugs.gnu.org
Subject: Re: bug#28837: Guile 2.2.2: Loading srfi-1 with merge-generics
 breaks "map"
Date: Mon, 16 Oct 2017 23:11:47 -0200
[Message part 1 (text/plain, inline)]
Hi Andrew,

> (define-module (mytest f)
>   #:use-module (oop goops)
>   #:use-module (srfi srfi-1)
>   #:duplicates (merge-generics))

You need at least 

  #:duplicates (merge-generics
                replace)

but as I recommended in an earlier message, you should extend the default set

  #:duplicates (merge-generics
		replace
		warn-override-core
		warn
		last)

> ,in (mytest f) map

> While executing meta-command:
> ERROR: Unbound variable: map

The above will fix your problem.

David
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 7 years and 306 days ago.

Previous Next


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