unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* imported module (srfi srfi-60) overrides core binding
@ 2010-06-24 21:02 Bruce Korb
  2010-06-28 13:03 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Korb @ 2010-06-24 21:02 UTC (permalink / raw)
  To: guile-devel

Hi,

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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: imported module (srfi srfi-60) overrides core binding
  2010-06-24 21:02 imported module (srfi srfi-60) overrides core binding Bruce Korb
@ 2010-06-28 13:03 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2010-06-28 13:03 UTC (permalink / raw)
  To: Bruce Korb; +Cc: guile-devel

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/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-28 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-24 21:02 imported module (srfi srfi-60) overrides core binding Bruce Korb
2010-06-28 13:03 ` Andy Wingo

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).