From: Sanel Z. <sa...@gm...> - 2015-09-01 09:39:24
|
Hi, Funny thing is that on my versions (older 1.1.14 and 1.2.15), args are only accepted in reversed order: sbcl --core 42.image --no-userinit but I'm able to access this symbol from the new image. Are you sure this image is properly loaded? You can inspect what image is currently in use with sb-int:*core-string* variable. Best, Sanel Sebastian Christ <rud...@gm...> writes: > Hi list, > > I think I need some help clarifying some things. What I did: > > Fire up SBCL: > > $ sbcl --no-userinit > This is SBCL 1.2.14, an implementation of ANSI Common Lisp. > More information about SBCL is available at <http://www.sbcl.org/>. > > SBCL is free software, provided as is, with absolutely no warranty. > It is mostly in the public domain; some portions are provided under > BSD-style licenses. See the CREDITS and COPYING files in the > distribution for more information. > * > > Define a variable: > > * (defvar *test* 42) > > *TEST* > * > > Now, saving an image: > > * (save-lisp-and-die "42.image") > [undoing binding stack and other enclosing state... done] > [saving current Lisp image into 42.image: > writing 4976 bytes from the read-only space at 0x20000000 > writing 3168 bytes from the static space at 0x20100000 > writing 62488576 bytes from the dynamic space at 0x1000000000 > done] > > So far so good. Now I'd like to load the image again: > > $ sbcl --no-userinit --core 42.image > This is SBCL 1.2.14, an implementation of ANSI Common Lisp. > More information about SBCL is available at <http://www.sbcl.org/>. > > SBCL is free software, provided as is, with absolutely no warranty. > It is mostly in the public domain; some portions are provided under > BSD-style licenses. See the CREDITS and COPYING files in the > distribution for more information. > * > > And accessing *test* presents me: > > * *test* > > debugger invoked on a UNBOUND-VARIABLE in thread > #<THREAD "main thread" RUNNING {1003B9E8E3}>: > The variable *TEST* is unbound. > > Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL. > > restarts (invokable by number or by possibly-abbreviated name): > 0: [ABORT] Exit debugger, returning to top level. > > (SB-INT:SIMPLE-EVAL-IN-LEXENV *TEST* #<NULL-LEXENV>) > 0] > > This is the part that confuses me. What am I doing wrong? > Thanks in advance. > > -- Sebastian > > > ------------------------------------------------------------------------------ > _______________________________________________ > Sbcl-help mailing list > Sbc...@li... > https://lists.sourceforge.net/lists/listinfo/sbcl-help |