bug#43025: re-export-public-interface fails on Guile 3

2021-03-12 Thread Dale Smith
Closing this. Please see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47084 instead for a better/more accurate report. -Dale

bug#43025: re-export-public-interface fails on Guile 3

2020-08-28 Thread Dale Smith
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* ..

bug#43025: re-export-public-interface fails on Guile 3

2020-08-27 Thread Dale Smith
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

bug#43025: re-export-public-interface fails on Guile 3

2020-08-26 Thread Dale Smith
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

bug#43025: re-export-public-interface fails on Guile 3

2020-08-26 Thread Leo Prikler
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

bug#43025: re-export-public-interface fails on Guile 3

2020-08-26 Thread 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-obarray (resolve-interface '(srfi srfi-1 > (iface (module-public-interface (c

bug#43025: re-export-public-interface fails on Guile 3

2020-08-24 Thread Leo Prikler
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

bug#43025: re-export-public-interface fails on Guile 3

2020-08-24 Thread 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-interface ;;; (define-module (modules) #:export (re-export-public-interface)) (define-