unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* SRFI-17 generates re-export warnings
@ 2005-06-27 14:39 Alan Grover
  2005-06-27 23:03 ` Kevin Ryde
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Grover @ 2005-06-27 14:39 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1533 bytes --]

Environment:
* Guile 1.6.4
* Linux xxxxx 2.6.8-24.14-default #1 Tue Mar 29 09:27:43 UTC 2005 i686
i686 i386 GNU/Linux
* SuSE 9.2
buildstamp = Fri Dec  3 18:43:57 UTC 2004
LIBS =  -lqthreads -lpthread -lcrypt -lm
libguileinterface = 15:0:3

Summary:
The (srfi srfi-17) module uses 'export' instead of 're-export', and thus
generates warnings.

Steps to reproduce:
% guile -c '(use-modules (srfi srfi-17))'
% /usr/bin/env GUILE_WARN_DEPRECATED=detailed guile -c '(use-modules
(srfi srfi-17))'

Transcript:
% guile -c '(use-modules (srfi srfi-17))'

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.

% /usr/bin/env GUILE_WARN_DEPRECATED=detailed guile -c '(use-modules
(srfi srfi-17))'
Using `export' to re-export imported bindings is deprecated.  Use
`re-export' instead.
(You just re-exported `setter' from `(srfi srfi-17)'.)
(You just re-exported `car' from `(srfi srfi-17)'.)
(You just re-exported `cdr' from `(srfi srfi-17)'.)
(You just re-exported `caar' from `(srfi srfi-17)'.)
...


Suggested patch:
--- orig/srfi/srfi-17.scm
+++ mod/srfi/srfi-17.scm
@@ -68,7 +68,8 @@
 ;;; Code:

 (define-module (srfi srfi-17)
-  :export (getter-with-setter
+  :export (getter-with-setter)
+  :re-export (
           setter
           ;; redefined standard procedures
           car cdr caar cadr cdar cddr caaar caadr cadar caddr cdaar

-- 
Alan Grover
awgrover@mail.msen.com
+1.734.476.0969




[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile

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

* Re: SRFI-17 generates re-export warnings
  2005-06-27 14:39 SRFI-17 generates re-export warnings Alan Grover
@ 2005-06-27 23:03 ` Kevin Ryde
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2005-06-27 23:03 UTC (permalink / raw)
  Cc: bug-guile

Alan Grover <awgrover@mail.msen.com> writes:
>
> The (srfi srfi-17) module uses 'export' instead of 're-export', and thus
> generates warnings.

You (I think it was you) already reported that, fixed in the cvs.

> +  :re-export (

I'm pretty sure that makes you export the core versions instead of the
new definitions, which is not what's wanted.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


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

end of thread, other threads:[~2005-06-27 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-27 14:39 SRFI-17 generates re-export warnings Alan Grover
2005-06-27 23:03 ` 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).