<Regenaxer>
It sets the namespace to a *single* one ic the first in the search order
<Regenaxer>
While local runs, no other symbols are found
<Regenaxer>
while (read) runs
<razzy>
i have issue
<razzy>
i create (symbols 'mine 'pico), i am in "mine" namespace i (setq prolog NIL) prolog is gone from "mine" namespace but it seems gone from pico namespace too
<Regenaxer>
Perhaps it existed already before
<Regenaxer>
*new* symbols are created in 'mine'
<Regenaxer>
With 'local' you can force this
<razzy>
sorry, i will try again
<Regenaxer>
but don't need if you *know* that it is not otherwhere in the search order
<Regenaxer>
you can force with (local) prolog
<Regenaxer>
or (setq mine~prolog xxx)
<Regenaxer>
if to NIL, use 'off'
<Regenaxer>
(off mine~prolog)
<razzy>
(setq mine~curry NIL) seems apropriate
<Regenaxer>
as you like :)
<razzy>
i was hoping that everything i do in my namespace will affect only my namespace
<Regenaxer>
Yes, lets hope
<Regenaxer>
namespaces are powerful but tricky
<Regenaxer>
easy to shoot into the foot
<razzy>
yeah
<Regenaxer>
Keep in mind that namespaces affect only I/O
<Regenaxer>
read and print
<razzy>
why sometime i drop out of namespace when i hit enter, and sometimes i do not
<Regenaxer>
If you enter an empty line, the REPL is left and restarted
<Regenaxer>
usded e.g. in a breakpoint
<Regenaxer>
to continue just with Enter
<Regenaxer>
So <space>Enter won't terminate the REPL
<razzy>
thx
<Regenaxer>
:)
<razzy>
and i terminate namespace (symbols 'myspace NIL) ? or how
<Regenaxer>
Namespaces are not terminated in that sense, but the (symbols) search order is private to a REPL
<Regenaxer>
ie.saved at start and then restored upon exit
<Regenaxer>
So (symbols ...) at the top of a file is private to that file
<razzy>
(setq myspace NIL) seems to did the trick
<Regenaxer>
is myspace a namespace? Then it is cleared
<Regenaxer>
NIL is not legal
<Regenaxer>
needs (NIL)
<Regenaxer>
cause it is two trees
<Regenaxer>
(symbols 'myspace ...) inits it to (NIL)
<Regenaxer>
otherwise the system gives an error
<Regenaxer>
if you use NIL as a namespace
<Regenaxer>
Must drive by cdr now, back later
<razzy>
(setq my-namespace NIL) seems to work the best
<razzy>
for namespace anihilation
<razzy>
adressing with myspace~curry and pico~curry works.
<razzy>
can i use function notation instead of myspace~symbol i.e. (search-namespaces myspace symbol) for better automation?
<Regenaxer>
back
<Regenaxer>
No, cause this is not a functional thing