Code: Select all
(context 'g)
(set 'action "Viewing file: testcgi.dbg")
(set 'home "/home/http/run/newlisp")
(set 'log-ex '(".dbg" ".err" ".ok"))
(set 'target-file "testcgi.dbg")
(set 'top-dir "/home/http/run/")
(context 'MAIN)
all is good:
Code: Select all
> (load "session.lsp")
MAIN
> g:top-dir
"/home/http/run/"
all members and values as the original but the following is not what I expected.
Code: Select all
> (load "session.lsp" 'gg)
MAIN
> gg:top-dir
nil
> (symbols 'gg)
(gg:g gg:top-dir)
FYI: What I want to be able to do is
save variables from a session, reload them at
the next execution of the script without overwriting the
current variables.
Thanks
Tim