unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* frisk versus srfi-1 filter
@ 2003-03-23 22:46 Kevin Ryde
  2003-03-24  9:18 ` Mikael Djurfeldt
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Ryde @ 2003-03-23 22:46 UTC (permalink / raw)


In the current cvs, I noticed the recent change to remove "filter"
from (srfi srfi-1) has broken frisk.  For instance,

	guile-tools frisk

produces

	ERROR: no binding `filter' in module (srfi srfi-1)

I guess scripts/frisk can be updated easily enough, but if an
application might be doing something similar then I wonder if srfi-1
could provide an alias for filter somehow, for compatibility.


_______________________________________________
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: frisk versus srfi-1 filter
  2003-03-23 22:46 frisk versus srfi-1 filter Kevin Ryde
@ 2003-03-24  9:18 ` Mikael Djurfeldt
  2003-06-02 23:53   ` srfi-6 re-exports (was: frisk versus srfi-1 filter) Kevin Ryde
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael Djurfeldt @ 2003-03-24  9:18 UTC (permalink / raw)
  Cc: guile-devel

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

> In the current cvs, I noticed the recent change to remove "filter"
> from (srfi srfi-1) has broken frisk.  For instance,
>
> 	guile-tools frisk
>
> produces
>
> 	ERROR: no binding `filter' in module (srfi srfi-1)
>
> I guess scripts/frisk can be updated easily enough, but if an
> application might be doing something similar then I wonder if srfi-1
> could provide an alias for filter somehow, for compatibility.

Certainly.  And this exposes other latent bugs.

Some bindings in srfi-1 (such as 'cons') are implemented in the core.
Until now, we've simply omitted those bindings from the export list of
the srfi-1 module.

'filter' was recently turned into a primitive, and therefore also
removed from the export list of srfi-1.

The "frisk" script correctly uses :select to explicitly ask for the
binding "filter" in srfi-1.  Of course people should be able to do
this for *all* bindings of srfi-1, which means that we must re-export
all core bindings.

guile-tools frisk should work now.

2003-03-24  Mikael Djurfeldt  <djurfeldt@nada.kth.se>

	* srfi-1.scm: Re-export all srfi-1 bindings implemented by the
	core.  (Thanks to Kevin Ryde.)


_______________________________________________
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

* srfi-6 re-exports (was: frisk versus srfi-1 filter)
  2003-03-24  9:18 ` Mikael Djurfeldt
@ 2003-06-02 23:53   ` Kevin Ryde
  2003-06-03 11:21     ` srfi-6 re-exports Mikael Djurfeldt
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Ryde @ 2003-06-02 23:53 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

Mikael Djurfeldt <djurfeldt@nada.kth.se> writes:
>
> The "frisk" script correctly uses :select to explicitly ask for the
> binding "filter" in srfi-1.  Of course people should be able to do
> this for *all* bindings of srfi-1, which means that we must re-export
> all core bindings.

Is this a general rule?  For instance I wonder if srfi-6 string ports
should re-export similarly.  (Below, untested.)

Of course being entirely in the core I don't suppose it's ever
occurred to anyone to use a module at all :-).


[-- Attachment #2: srfi-6.scm.re-export.diff --]
[-- Type: text/plain, Size: 719 bytes --]

--- srfi-6.scm.~1.5.~	2003-04-07 08:05:30.000000000 +1000
+++ srfi-6.scm	2003-05-25 08:36:58.000000000 +1000
@@ -1,6 +1,6 @@
 ;;; srfi-6.scm --- Basic String Ports
 
-;; 	Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+;; 	Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
 ;;
 ;; This library is free software; you can redistribute it and/or
 ;; modify it under the terms of the GNU Lesser General Public
@@ -22,7 +22,8 @@
 
 ;;; Code:
 
-(define-module (srfi srfi-6))
+(define-module (srfi srfi-6)
+  #:re-export (open-input-string open-output-string get-output-string))
 
 ;; Currently, guile provides these functions by default, so no action
 ;; is needed, and this file is just a placeholder.

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
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: srfi-6 re-exports
  2003-06-02 23:53   ` srfi-6 re-exports (was: frisk versus srfi-1 filter) Kevin Ryde
@ 2003-06-03 11:21     ` Mikael Djurfeldt
  2003-06-06 22:35       ` Kevin Ryde
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael Djurfeldt @ 2003-06-03 11:21 UTC (permalink / raw)
  Cc: djurfeldt

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

> Mikael Djurfeldt <djurfeldt@nada.kth.se> writes:
>>
>> The "frisk" script correctly uses :select to explicitly ask for the
>> binding "filter" in srfi-1.  Of course people should be able to do
>> this for *all* bindings of srfi-1, which means that we must re-export
>> all core bindings.
>
> Is this a general rule?

Yes.

> For instance I wonder if srfi-6 string ports
> should re-export similarly.  (Below, untested.)

Yes.  Please apply your patch.

Thanks,
Mikael


_______________________________________________
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: srfi-6 re-exports
  2003-06-03 11:21     ` srfi-6 re-exports Mikael Djurfeldt
@ 2003-06-06 22:35       ` Kevin Ryde
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Ryde @ 2003-06-06 22:35 UTC (permalink / raw)


Mikael Djurfeldt <djurfeldt@nada.kth.se> writes:
>
> Yes.  Please apply your patch.

I added a test program too, to exercise this.  And some tests on the
functions, just so it's not a two line file :-).

        * srfi-6.scm: #:re-export open-input-string, open-output-string and
        get-output-string, for the benefit of applications wanting to use
        #:select on the module.

        * tests/srfi-6.test: New file.


_______________________________________________
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:[~2003-06-06 22:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-23 22:46 frisk versus srfi-1 filter Kevin Ryde
2003-03-24  9:18 ` Mikael Djurfeldt
2003-06-02 23:53   ` srfi-6 re-exports (was: frisk versus srfi-1 filter) Kevin Ryde
2003-06-03 11:21     ` srfi-6 re-exports Mikael Djurfeldt
2003-06-06 22:35       ` Kevin Ryde

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