This is the mail archive of the guile@cygnus.com mailing list for the guile project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
>I'm pretty sure this is easy, but I'd prefer to spend 3-4 days it'd >take to experiment/research the answer on writing the actual >application. ;) Hmm. Unfortunately, this isn't as easy as it ought to be, because the startup functions aren't well-designed (my fault). Look at scm_shell in script.c. Do what it does, but load your file *after* calling scm_compile_shell_switches (which loads boot-9), but *before* passing the result to scm_eval_x. Using Maciej's optional argument package is a pretty safe bet. You'll have less conversion trouble (if any) using that than rolling your own.