[gambit-list] How to create small standalone executable with
David Bridgham
dab at froghouse.org
Mon Aug 17 07:45:33 EDT 2009
Adrien Piérard wrote:
> This is quite hard, because in Scheme, you may call a function which
> does not appear in the source code.
> For example, the code below uses the function "LOAD", but there is no
> way you can forsee that…
> This is not a problem of Gambit-C, it's a feature of Scheme (and other
> languages with an EVAL function)
>
> (define func "lo")
> (define tion "ad")
> (eval (list (string->symbol (string-append func tion)) "another-file.scm"))
>
Sure. If you call eval then everything else has to get dragged in. If
you don't call eval, why does the entire library get linked in rather
than only what's called?
-Dave
More information about the Gambit-list
mailing list