Re: Getting saved sbcl image to restart correctly



"Jonathon McKitrick" <j_mckitrick@xxxxxxxxxxx> writes:

I thought maybe that function would be called and then a repl would
be automagically started.

Instead of replacing the toplevel, you may just want to push a
function that performs the setup you need onto SB-EXT:*INIT-HOOKS*
before saving the image.

* (describe 'sb-ext:*init-hooks*)

*INIT-HOOKS* is an external symbol in #<PACKAGE "SB-EXT">.
It is a special variable; its value is NIL.
Special documentation:
This is a list of functions which are called in an unspecified
order when a saved core image starts up, after the system itself has
been initialized. Unused by SBCL itself: reserved for user and
applications.

James
.



Relevant Pages