Re: image startup: package
Steve Haflich <[email protected]> Mon, 15 Aug 2005 22:17:44 -0700
| Newsgroups | gmane.lisp.allegro |
|---|---|
| Message-ID | <9059.1124169464@bach> |
From: [email protected] this is a follow-up to a question that was asked recently - I'd like to start an image and invoke a function residing in a package other than CL-user. The "naive idea" alisp -I myimage -e '(in-package mypack)' -e '(myfuninmypack)' won't work as has been discussed earlier. Have you considered something like this? alisp -I myimage -e '(mypack::myfuninmypack)' With the posted solution (extension to clinit.cl), however, I can only invoke the package upon image start, but not call a function - it would still be looked for in cl-user. The phrase "invoke the package" doesn't mean anything. You are probably failinmg to find a solution because of lack of a clear notion of what you are trying to do. If you examine the file src/aclstart.cl (which should be included in your distrobution) you will discover that "-e" argument forms are read inside a with-standard-io-syntax macro. This prevents them from changing the value any of the special variables controlled by with-standard-io-syntax.