load sym-context problem
Posted: Sat May 17, 2008 10:53 pm
I have a file created by 'save. session.lsp
When I attempt to load this file without the option sym-context parameter,
all is good:
When I load with 'sym-context I expected the symbol to contain
all members and values as the original but the following is not what I expected.
I guess I need some clarification.
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
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