HiMaekawa,

yes, you can dynamically load functions. In Curl you have two possibilities:

1. Use the procedure {evaluate {url "myfile.scurl"}} if the file
contains just one expression. The procedure returns the value of the
expression. Take care to use a package if you evaluate expression like
{let x = "Hello"} several times. If you don't specify a package the
current package will be used and when evaluating the expression the
second time the variable x has already been defined, i.e. it will throw
an error.

2. Use import-package and lookup when the file is a packages. With
lookup you can select the definition you want to use from the package.
dynamic-lookup is a macro that simplifies the mechanism. Again if you
import the same package twice make sure that the update version is used,
not the cached one. Consider using Pacakge.get-members if you don't know
the contents of the package.

The second solution is more structured than the first one. Choose the
appropriate method depending on size and your needs.


Let me know if you want to know more.

Friedger

*******************************************
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]

Reply via email to