unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Overwriting bindings by importing
@ 2004-04-30 13:09 Wolfgang Jaehrling
  2004-04-30 23:22 ` Kevin Ryde
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Jaehrling @ 2004-04-30 13:09 UTC (permalink / raw)


Hi!

Is this a bug or only (very) counter-intuitive behaviour?

guile> (version)
"1.6.4"
guile> iota
#<procedure iota (n)>
guile> (use-modules (srfi srfi-1))
guile> iota
#<procedure iota (n)>
guile> (module-ref (resolve-module '(srfi srfi-1)) 'iota)
#<procedure iota (count . rest)>

Note that 1.5.8 did not do this:

guile> (version)
"1.5.8"
guile> iota
#<procedure iota (n)>
guile> (use-modules (srfi srfi-1))
guile> iota
#<procedure iota (count . rest)>

Cheers,
Wolfgang

-- 
Repeating false statements makes them true.
Repeating false statements makes them true.
Repeating false statements makes them true.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


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

* Re: Overwriting bindings by importing
  2004-04-30 13:09 Overwriting bindings by importing Wolfgang Jaehrling
@ 2004-04-30 23:22 ` Kevin Ryde
  2004-05-01 16:12   ` Wolfgang Jaehrling
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Ryde @ 2004-04-30 23:22 UTC (permalink / raw)
  Cc: guile-devel

Wolfgang Jaehrling <pro-linux@gmx.de> writes:
>
> guile> (use-modules (srfi srfi-1))
> guile> iota
> #<procedure iota (n)>

That's wrong I think.

It also doesn't happen for me with the debian i386 packaged 1.6.4.
You'll have to make a full bug report.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


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

* Re: Overwriting bindings by importing
  2004-04-30 23:22 ` Kevin Ryde
@ 2004-05-01 16:12   ` Wolfgang Jaehrling
  2004-05-09  0:47     ` Kevin Ryde
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Jaehrling @ 2004-05-01 16:12 UTC (permalink / raw)
  Cc: guile-devel

On Sat, May 01, 2004 at 09:22:02AM +1000, Kevin Ryde wrote:
> That's wrong I think.

Loading `(ice-9 history)' in my `.guile' file caused this.

wj@kaputt:~$ guile -q
guile> (use-modules (ice-9 history))
guile> (use-modules (srfi srfi-1))
guile> iota
$1 = #<procedure iota (n)>

wj@kaputt:~$ guile -q
guile> (use-modules (srfi srfi-1))
guile> iota
#<procedure iota (count . rest)>



Cheers,
Wolfgang


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


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

* Re: Overwriting bindings by importing
  2004-05-01 16:12   ` Wolfgang Jaehrling
@ 2004-05-09  0:47     ` Kevin Ryde
  2004-05-24 20:49       ` Marius Vollmer
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Ryde @ 2004-05-09  0:47 UTC (permalink / raw)
  Cc: guile-devel

Wolfgang Jaehrling <pro-linux@gmx.de> writes:
>
> Loading `(ice-9 history)' in my `.guile' file caused this.

Ah, something fishy in the way it mungs the current module to add the
value-history module.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


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

* Re: Overwriting bindings by importing
  2004-05-09  0:47     ` Kevin Ryde
@ 2004-05-24 20:49       ` Marius Vollmer
  0 siblings, 0 replies; 5+ messages in thread
From: Marius Vollmer @ 2004-05-24 20:49 UTC (permalink / raw)
  Cc: guile-devel

Kevin Ryde <user42@zip.com.au> writes:

> Wolfgang Jaehrling <pro-linux@gmx.de> writes:
>>
>> Loading `(ice-9 history)' in my `.guile' file caused this.
>
> Ah, something fishy in the way it mungs the current module to add the
> value-history module.

Yes.  The change below should fix it.

2004-05-24  Marius Vollmer  <mvo@zagadka.de>

	* history.scm (use-value-history): Use resolve-interface instead
	of resolve-module so that only the exported bindings are searched.
	(save-value-history): Export the newly defined variable.


-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


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

end of thread, other threads:[~2004-05-24 20:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-30 13:09 Overwriting bindings by importing Wolfgang Jaehrling
2004-04-30 23:22 ` Kevin Ryde
2004-05-01 16:12   ` Wolfgang Jaehrling
2004-05-09  0:47     ` Kevin Ryde
2004-05-24 20:49       ` Marius Vollmer

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