1
0
Fork 0
cl-sites/novaspec.org/cl/v__plus.html
2025-02-05 18:52:26 +01:00

305 lines
No EOL
5.7 KiB
HTML

<!DOCTYPE HTML>
<HTML LANG="en-us"
><HEAD
><TITLE
>+, ++, +++ | Common Lisp Nova Spec</TITLE
><META CHARSET="US-ASCII"
><LINK REL="canonical" HREF="v__plus.html"
><LINK REL="next" HREF="v__star.html" TYPE="text/html" TITLE="*, **, ***"
><LINK REL="prev" HREF="v__minus.html" TYPE="text/html" TITLE="&#8722;"
><LINK REL="up" HREF="25_2_Environment_Dictionary.html" TYPE="text/html" TITLE="25.2 Environment Dictionary"
><LINK REL="start" HREF="index.html" TYPE="text/html" TITLE="Common Lisp Nova Spec"
><META NAME="VIEWPORT" CONTENT="width=device-width, initial-scale=1.0"
><LINK REL="STYLESHEET" HREF="dpans.css%3F3909942064.css"
><SCRIPT SRC="dpans.js%3F3909942064"
></SCRIPT
><SCRIPT SRC="apropos.js%3F3909942064"
></SCRIPT
></HEAD
><BODY
><DIV
><DIV CLASS="topnav"
><DIV CLASS="breadcrumb"
><SPAN CLASS="breadcrumb-item"
><A HREF="index.html"
>Common Lisp Nova Spec</A
></SPAN
> <SPAN CLASS="breadcrumb-item"
>&#8594; <A HREF="25_Environment.html"
>25. Environment</A
></SPAN
> <SPAN CLASS="breadcrumb-item"
>&#8594; <A HREF="25_2_Environment_Dictionary.html"
>25.2 Environment Dictionary</A
></SPAN
> <SPAN CLASS="breadcrumb-item"
>&#8594; <A HREF="v__plus.html"
>+, ++, +++</A
></SPAN
></DIV
><DIV CLASS="apropos"
><DIV CLASS="apropos-io"
><A HREF="v__minus.html" CLASS="prev"
>&#8592;</A
><SPAN ID="apropos-label"
>Apropos </SPAN
><INPUT ID="apropos" AUTOFOCUS="AUTOFOCUS" PLACEHOLDER="Type here to search" ONINPUT="aproposInput(this);" ONKEYUP="aproposKeyup(event);" ONCHANGE="aproposChange(this);" ONFOCUS="aproposFocus(this);" ONFOCUSOUT="aproposFocusout(this);"
><A HREF="v__star.html" CLASS="next"
>&#8594;</A
></DIV
><DIV ID="apropos-res"
></DIV
></DIV
></DIV
><DIV CLASS="matter"
><DIV CLASS="com"
><DIV CLASS="begincom"
><HR
><TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0"
><TR
><TD ALIGN="LEFT" VALIGN="BASELINE" WIDTH="100%" CLASS="name"
><SPAN CLASS="idx" DATA-KIND="idxref" DATA-TERM="+, ++, +++"
></SPAN
><B
>+, ++, +++</B
></TD
><TD ALIGN="RIGHT" VALIGN="BASELINE" WIDTH="0" NOWRAP="NOWRAP" CLASS="ftype"
><I
>Variable</I
></TD
></TR
></TABLE
><HR
></DIV
><UL CLASS="subtoc"
></UL
><DL
><DT
><B
>Value Type</B
></DT
><DD
><P CLASS="j"
>an <A HREF="26_1_Glossary.html#object"
><EM CLASS="term"
>object</EM
></A
>.</P
></DD
><DT
><B
>Initial Value</B
></DT
><DD
><P CLASS="j"
><A HREF="26_1_Glossary.html#implementation-dependent"
><EM CLASS="term"
>implementation-dependent</EM
></A
>.</P
></DD
><DT
><B
>Description</B
></DT
><DD
><P CLASS="j"
>The <A HREF="26_1_Glossary.html#variable"
><EM CLASS="term"
>variables</EM
></A
> <A HREF="v__plus.html" CLASS="varref"
><B
>+</B
></A
>, <A HREF="v__plus.html" CLASS="misc"
><B
>++</B
></A
>, and <A HREF="v__plus.html" CLASS="misc"
><B
>+++</B
></A
> are maintained by the <A HREF="26_1_Glossary.html#Lisp_read-eval-print_loop"
><EM CLASS="term"
>Lisp read-eval-print loop</EM
></A
> to save <A HREF="26_1_Glossary.html#form"
><EM CLASS="term"
>forms</EM
></A
> that were recently <A HREF="26_1_Glossary.html#evaluate"
><EM CLASS="term"
>evaluated</EM
></A
>. </P
><P CLASS="j"
>The <A HREF="26_1_Glossary.html#value"
><EM CLASS="term"
>value</EM
></A
> of <SPAN CLASS="misc"
><B
>+</B
></SPAN
> is the last <A HREF="26_1_Glossary.html#form"
><EM CLASS="term"
>form</EM
></A
> that was <A HREF="26_1_Glossary.html#evaluate"
><EM CLASS="term"
>evaluated</EM
></A
>, the <A HREF="26_1_Glossary.html#value"
><EM CLASS="term"
>value</EM
></A
> of <A HREF="v__plus.html" CLASS="misc"
><B
>++</B
></A
> is the previous value of <SPAN CLASS="misc"
><B
>+</B
></SPAN
>, and the <A HREF="26_1_Glossary.html#value"
><EM CLASS="term"
>value</EM
></A
> of <A HREF="v__plus.html" CLASS="misc"
><B
>+++</B
></A
> is the previous value of <A HREF="v__plus.html" CLASS="misc"
><B
>++</B
></A
>.</P
></DD
><DT
><B
>Examples</B
></DT
><DD
><PRE CLASS="screen"
>(+ 0 1) <SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> 1
(- 4 2) <SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> 2
(/ 9 3) <SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> 3
(list + ++ +++) <SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> ((/ 9 3) (- 4 2) (+ 0 1))
(setq a 1 b 2 c 3 d (list a b c)) <SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> (1 2 3)
(setq a 4 b 5 c 6 d (list a b c)) <SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> (4 5 6)
(list a b c) <SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> (4 5 6)
(eval +++) <SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> (1 2 3)
#.`(,@++ d) <SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> (1 2 3 (1 2 3))</PRE
></DD
><DT
><B
>Affected By</B
></DT
><DD
><P CLASS="j"
><A HREF="26_1_Glossary.html#Lisp_read-eval-print_loop"
><EM CLASS="term"
>Lisp read-eval-print loop</EM
></A
>.</P
></DD
><DT
><B
>See Also</B
></DT
><DD
><P CLASS="j"
><A HREF="f__minus.html" CLASS="funref"
><B
>-</B
></A
> (<A HREF="26_1_Glossary.html#variable"
><EM CLASS="term"
>variable</EM
></A
>), <A HREF="f__star.html" CLASS="funref"
><B
>*</B
></A
> (<A HREF="26_1_Glossary.html#variable"
><EM CLASS="term"
>variable</EM
></A
>), <A HREF="f__dash.html" CLASS="funref"
><B
>/</B
></A
> (<A HREF="26_1_Glossary.html#variable"
><EM CLASS="term"
>variable</EM
></A
>), <A HREF="25_1_The_External_Environment.html#sec_25_1_1" CLASS="secref"
><SPAN CLASS="cmr"
>Section</SPAN
> <SPAN CLASS="cmr"
>25.1.1</SPAN
> <SPAN CLASS="cmr"
>(Top</SPAN
> <SPAN CLASS="cmr"
>level</SPAN
> <SPAN CLASS="cmr"
>loop)</SPAN
></A
></P
></DD
></DL
></DIV
></DIV
><DIV CLASS="footer"
><DIV CLASS="btmnav"
><A HREF="v__minus.html" CLASS="prev"
>&#8592;</A
><A HREF="v__star.html" CLASS="next"
>&#8594;</A
></DIV
><DIV CLASS="trail"
>Conversion to HTML copyright 2023 by Gilbert Baumann</DIV
></DIV
></DIV
><SCRIPT
>domReady();</SCRIPT
></BODY
></HTML
>