Re: Puzzled by SBCL evaluating some Scheme code

Liste des GroupesRevenir à cl lisp 
Sujet : Re: Puzzled by SBCL evaluating some Scheme code
De : 433-929-6894 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.lisp
Date : 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__.htm

There are also variables +, ++ and +++, which hold less
recent values of -.

https://www.lispworks.com/documentation/lw50/CLHS/Body/v_pl_plp.htm

There 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_.htm

As 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/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Date Sujet#  Auteur
27 Mar 24 * Puzzled by SBCL evaluating some Scheme code3Axel Reichert
27 Mar 24 `* Re: Puzzled by SBCL evaluating some Scheme code2Kaz Kylheku
27 Mar 24  `- Re: Puzzled by SBCL evaluating some Scheme code1Axel Reichert

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal