unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Bruce Korb <bruce.korb@gmail.com>
Cc: guile-devel@gnu.org
Subject: Re: imported module (srfi srfi-60) overrides core binding
Date: Mon, 28 Jun 2010 15:03:42 +0200	[thread overview]
Message-ID: <m3bpavz4up.fsf@unquote.localdomain> (raw)
In-Reply-To: <AANLkTinT3v3fIoSw5RK-GwFq49KTYgGe5YNq9l8MdXh-@mail.gmail.com> (Bruce Korb's message of "Thu, 24 Jun 2010 14:02:55 -0700")

Hi Bruce,

On Thu 24 Jun 2010 23:02, Bruce Korb <bruce.korb@gmail.com> 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	other threads:[~2010-06-28 13:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24 21:02 imported module (srfi srfi-60) overrides core binding Bruce Korb
2010-06-28 13:03 ` Andy Wingo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3bpavz4up.fsf@unquote.localdomain \
    --to=wingo@pobox.com \
    --cc=bruce.korb@gmail.com \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).