On Wed, Dec 04, 2013 at 12:04:34PM -0500, [email protected] 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 > >
