Sujet : Re: Puzzled by SBCL evaluating some Scheme code
De : 433-929-6894 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.lispDate : 27. Mar 2024, 08:39:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240326233251.513@kylheku.com>
References : 1
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-03-27, Axel Reichert <
mail@axel-reichert.de> wrote:
However, at one point I managed to paste an expression into the wrong
REPL, SBCL instead of Guile, and got
>
(list + - * /)
evaluated by SBCL as
>
(NIL (LIST + - * /) NIL NIL)
In the Common Lisp interactive listener (a.k.a. REPL), there is a
standard variable called - which evaluates to the form currently
being evaluated:
https://www.lispworks.com/documentation/lw50/CLHS/Body/v__.htmThere are also variables +, ++ and +++, which hold less
recent values of -.
https://www.lispworks.com/documentation/lw50/CLHS/Body/v_pl_plp.htmThere also *, ** and ***, which hold the primary value of the
three most recent REPL evaluations, and:
https://www.lispworks.com/documentation/lw50/CLHS/Body/v__stst_.htmAs well as /, // and ///, which hold the lists of all the values
of the three most recent evaluations.
https://www.lispworks.com/documentation/lw50/CLHS/Body/v_sl_sls.htm-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca