thank you for the advice,for now i'm trying with Racket r6rs support and it
is not easy,
the solution in guile seems to be to rename or to use the define-module
style instead of the r6rs library, if only a name in the new library is the
same as an existing name in guile library it is not usable as
Hello Damien,
Be aware though, that porting some exports may not work without renaming them:
https://lists.gnu.org/archive/html/guile-user/2023-06/msg00020.html
Regards,
Zelphir
On 3/27/24 08:42, Damien Mattei wrote:
yes it should works. I trying to port all my scheme code in R6RS library
sty
yes it should works. I trying to port all my scheme code in R6RS library
style for compatibility,it's a bit complex depending the integration of
R6RS in a particular scheme but i think there should be a compatibility
advantage doing that.
Damien
On Wed, Mar 20, 2024 at 12:09 AM Maxime Devos
wrot
Yes, with ‘library’ or ‘define-library’ forms.
(see https://www.gnu.org/software/guile/manual/html_node/R6RS-Libraries.html)
(library (insert name here)
(export [insert exports here])
(import
(guile) ; standard imports
(rename (ice-9 popen) (open-pipe pipe-open)))
[insert definitio
yes , your solution works, thanks :
(use-modules (Scheme+)
(matrix+)
(srfi srfi-42) ; import all definitions
((srfi srfi-42)
#:select ((: . s42-:))) ; rename only one
;;((srfi srfi-42) ; Eager Comprehensions
;; #:prefix s42-)
(oop goops)
(srfi srfi-43)) ; ve
On Sun, Mar 03, 2024 at 09:46:41AM +0100, Damien Mattei wrote:
> hello,
>
> is it possible to import a module having just one variable renamed (not
> all) , as in Racket:
>
> (require (rename-in srfi/42
> (: s42:))) ; Eager Comprehensions
>
> it seems in Guile either all is imported
On 2024-03-03 09:46:41 +0100, Damien Mattei wrote:
> hello,
>
> is it possible to import a module having just one variable renamed (not
> all) , as in Racket:
>
> (require (rename-in srfi/42
> (: s42:))) ; Eager Comprehensions
>
> it seems in Guile either all is imported and prefixed o
hello,
is it possible to import a module having just one variable renamed (not
all) , as in Racket:
(require (rename-in srfi/42
(: s42:))) ; Eager Comprehensions
it seems in Guile either all is imported and prefixed or only a selection
of bindings can be imported:
https://www.gnu.o