I'm trying to make an image using ext:saveinitmem in clisp, but when I call
it using the :init-function parameter, it blows up. I've tried:
(ext:saveinitmem :init-function main)
EVAL: variable MAIN has no value
and
(ext:saveinitmem :init-function 'main)
EVAL/APPLY: keyword arguments for #<compiled-closure saveinitmem> should
occur pairwise
I think I've just got the syntax wrong, but I can't find any references that
list the parameter or an example.
I might be wrong, but I'm pretty sure you need a filename to dump to
(even though in the documentation, this comes after "&optional").
perhaps:
(ext:saveinitmem "canalWater.mem" :init-function 'main)
would work.
-Andy
Paul Betts wrote:
> I'm trying to make an image using ext:saveinitmem in clisp, but when I call
> it using the :init-function parameter, it blows up. I've tried:
>
> (ext:saveinitmem :init-function main)
> EVAL: variable MAIN has no value
>
> and
>
> (ext:saveinitmem :init-function 'main)
> EVAL/APPLY: keyword arguments for #<compiled-closure saveinitmem> should
> occur pairwise
>
> I think I've just got the syntax wrong, but I can't find any references that
> list the parameter or an example.
>
>
On Thu, 3 Jun 2004 19:17:21 -0400, "Paul Betts" <···············@cis.ohio-state.edu> wrote:
> (ext:saveinitmem :init-function 'main)
> EVAL/APPLY: keyword arguments for #<compiled-closure saveinitmem>
> should occur pairwise
>
> I think I've just got the syntax wrong, but I can't find any
> references that list the parameter or an example.
That's a common problem with functions that take optional as well as
keyword arguments: If you want to provide one of the keyword arguments
you /must/ also provide all optional arguments. In your case above you
have to provide the FILENAME argument as well, even if you intend to
use the default value.
Cheers,
Edi.