guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using a module : rename a single definition


From: Damien Mattei
Subject: using a module : rename a single definition
Date: Sun, 3 Mar 2024 09:46:41 +0100

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.org/software/guile/manual/html_node/Using-Guile-Modules.html

(use-modules ((ice-9 popen)
              #:select ((open-pipe . pipe-open) close-pipe)
              #:prefix unixy:))

regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]