guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imported module (srfi srfi-60) overrides core binding


From: Andy Wingo
Subject: Re: imported module (srfi srfi-60) overrides core binding
Date: Mon, 28 Jun 2010 15:03:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Bruce,

On Thu 24 Jun 2010 23:02, Bruce Korb <address@hidden> writes:

> I am getting this error message:
>
> WARNING: (guile-user): imported module (srfi srfi-60) overrides core
> binding `bit-count'
>
> What is this trying to say?  I just need the arithmetic-shift
> function.  Thank you.

It's saying that srfi-60 exports bit-count, but Guile already defined
bit-count. It then replaces the core definition (in your current module)
and proceeds.

It's just a warning, albeit a confused one:
http://article.gmane.org/gmane.lisp.guile.devel/10525. Fixed in git.

However `ash' is available in the default environment (see the manual),
and I think it optimizes better. Alternately you could:

  (use-modules ((srfi srfi-60) #:select (arithmetic-shift)))

or

  #:use-module ((srfi srfi-60) #:select (arithmetic-shift))

in a define-module form.

And
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]