Closing this. Please see
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47084 instead
for a better/more accurate report.
-Dale
And now using a more standard error reporting function.
I think it's done now.
(define-syntax re-export-public-interface
(syntax-rules ()
"Re-export the public interface of a module or modules. Invoked as
@code{(re-export-public-interface (mod1) (mod2) ...)}."
((_ (m0 m0* ...) (mn mn* ..
And here has some better error handling/reporting.
(define-syntax re-export-public-interface
(syntax-rules ()
"Re-export the public interface of a module or modules. Invoked as
@code{(re-export-public-interface (mod1) (mod2) ...)}."
((_ (m0 m0* ...) (mn mn* ...) ...)
(let ((iface (m
This seems to work for guile-2.2 and guile-3.
Would be nice if it checked that module names look like lists.
One step closer to g-golf working on guile-3!
(define-syntax re-export-public-interface
(syntax-rules ()
"Re-export the public interface of a module or modules. Invoked as
@code{(re
Am Mittwoch, den 26.08.2020, 12:51 -0400 schrieb Dale Smith:
> On 8/24/20, Leo Prikler wrote:
> > My solution for this problem would be to build on some of the
> > module
> > "intrinsics", which sadly are not all that well documented.
> >
> > (define-module (a))
> >
> > (let ((obs (module-obarra
On 8/24/20, Leo Prikler wrote:
> My solution for this problem would be to build on some of the module
> "intrinsics", which sadly are not all that well documented.
>
> (define-module (a))
>
> (let ((obs (module-obarray (resolve-interface '(srfi srfi-1
> (iface (module-public-interface (c
Hi Dale.
Am Montag, den 24.08.2020, 12:11 -0400 schrieb Dale Smith:
> This is actually reported by daviid on IRC.
>
> This definition of re-export-public-interface works fine on Guile
> 2.x,
> fails with Guile 3:
> (hope this makes it through the mails cleanly)
> ;;;
> ;;; re-export-public-inter
This is actually reported by daviid on IRC.
This definition of re-export-public-interface works fine on Guile 2.x,
fails with Guile 3:
(hope this makes it through the mails cleanly)
;;;
;;; re-export-public-interface
;;;
(define-module (modules)
#:export (re-export-public-interface))
(define-