[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Load external scm files
From: |
Ralf Mattes |
Subject: |
Re: Load external scm files |
Date: |
Wed, 4 Dec 2013 18:37:35 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Dec 04, 2013 at 12:04:34PM -0500, address@hidden wrote:
>
> Sounds like a job for include:
> http://www.gnu.org/software/guile/manual/html_node/Local-Inclusion.html#index-include
>
Yes, except Lilypond's main branch strill uses guile-1.8 and that doesn't know
'include.
I think at this point it might be a good idea to ask the OP what problem he
tries to solve.
Writing scheme code into a file that gets spliced into a function definition
sounds like
a kludge to me. If visibility/encapsulation is the goal, maybe a module is the
better
solution (plus, maybe some syntactic sugar to hide guile's module system:
(define-plugin ...)
which would expand into (define-module ...) and (use-plugin ...) that would
expand into
a (use-modules ...) with an appropriate symbol-renamer that transforms a module
name
(foo bar baz) into foo.bar.baz.exported-symbol ...)
Cheers RalfD
> -Dale
>
>