guile-user
[Top][All Lists]
Advanced

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

Re: Avoiding name clashes between different scripts


From: Thien-Thi Nguyen
Subject: Re: Avoiding name clashes between different scripts
Date: Fri, 01 Apr 2005 14:47:11 +0200

   From: Chusslove Illich <address@hidden>
   Date: Fri, 1 Apr 2005 12:55:10 +0200

   I am trying to introduce Guile for scripting some things
   within, eh, a certain C++ application. [...]

probably you should avoid top-level defines and use "executable
modules", instead:

http://www.glug.org/docbits/guile/1.4.x/Executable-Modules.html

a module gives you a namespace into and out of which you can
import and export bindings.  "executable" (in this context)
means the code has a standard interface invokable from the
command line.  in this case, your execution environment is not
from the command line, but the techniques involved would be the
same.

thi




reply via email to

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