Madhu <
eno...@meer.net> wrote:
> * Madhu <
m3fsrhy...@leonis4.robolove.meer.net> :
>
>> For experimental programming I find it easiest to manipulate state in
>> global variables and refer to them with a $ prefix - as $line.
>>
Tim Bradshaw's global lexicals hack
(
https://tfeb.github.io/tfeb-lisp-toys/#global-lexical-variables-glex) now
has reader support: you can make it be so that #$x refers to a global
lexical x:
(setf #$x 3)
means that #$x will be 3, and if you then do (defglex x), x will be 3 too,
but x is not bound in the symbol-value sense.
Suspect this is not what you are after, but perhaps worth mentioning.
Disclaimer: reader support only exists because I asked him to add it, I
only asked him to add it because of your post (hence $ is the char). So it
is nicely circular any way.
--
the small snake