Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /impnotes/eval.html [000000] .. [458129] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/impnotes/eval.html
@@ -0,0 +1,412 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<HTML
+><HEAD
+><TITLE
+>Evaluation and Compilation
+   [CLHS-3]</TITLE
+><META
+NAME="GENERATOR"
+CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
+"><LINK
+REV="MADE"
+HREF="mailto:clisp-list@sf.net"><LINK
+REL="HOME"
+TITLE="Implementation Notes for GNU CLISP."
+HREF="impnotes-top.html"><LINK
+REL="UP"
+TITLE="Chapters or the Common Lisp HyperSpec"
+HREF="clhs-chapters.html"><LINK
+REL="PREVIOUS"
+TITLE="Sharpsign
+  [CLHS-2.4.8]"
+HREF="sharpsign.html"><LINK
+REL="NEXT"
+TITLE="Compilation
+  [CLHS-3.2]"
+HREF="compilation.html"><LINK
+REL="STYLESHEET"
+TYPE="text/css"
+HREF="impnotes.css"></HEAD
+><BODY
+CLASS="chapter"
+BGCOLOR="#FFFFFF"
+TEXT="#000000"
+LINK="#0000FF"
+VLINK="#840084"
+ALINK="#0000FF"
+><DIV
+CLASS="NAVHEADER"
+><TABLE
+SUMMARY="Header navigation table"
+WIDTH="100%"
+BORDER="0"
+CELLPADDING="0"
+CELLSPACING="0"
+><TR
+><TH
+COLSPAN="3"
+ALIGN="center"
+>Implementation Notes for <A
+HREF="http://www.gnu.org"
+TARGET="_top"
+>GNU</A
+> <A
+HREF="http://clisp.cons.org"
+TARGET="_top"
+><B
+CLASS="command"
+>CLISP</B
+></A
+>.: These notes document <A
+HREF="http://clisp.cons.org"
+TARGET="_top"
+><B
+CLASS="command"
+>CLISP</B
+></A
+> version 2.31.</TH
+></TR
+><TR
+><TD
+WIDTH="10%"
+ALIGN="left"
+VALIGN="bottom"
+><A
+HREF="sharpsign.html"
+ACCESSKEY="P"
+>Prev</A
+></TD
+><TD
+WIDTH="80%"
+ALIGN="center"
+VALIGN="bottom"
+></TD
+><TD
+WIDTH="10%"
+ALIGN="right"
+VALIGN="bottom"
+><A
+HREF="compilation.html"
+ACCESSKEY="N"
+>Next</A
+></TD
+></TR
+></TABLE
+><HR
+ALIGN="LEFT"
+WIDTH="100%"></DIV
+><DIV
+CLASS="chapter"
+><H1
+><A
+NAME="eval"
+></A
+>Chapter 3. Evaluation and Compilation
+   <A
+HREF="http://www.lisp.org/HyperSpec/Body/chap-3.html"
+TARGET="_top"
+>[CLHS-3]</A
+></H1
+><DIV
+CLASS="TOC"
+><DL
+><DT
+><B
+>Table of Contents</B
+></DT
+><DT
+>3.1. <A
+HREF="eval.html#evaluation"
+>Evaluation
+  <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_3-1.html"
+TARGET="_top"
+>[CLHS-3.1]</A
+></A
+></DT
+><DT
+>3.2. <A
+HREF="compilation.html"
+>Compilation
+  <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_3-2.html"
+TARGET="_top"
+>[CLHS-3.2]</A
+></A
+></DT
+><DT
+>3.3. <A
+HREF="declarations.html"
+>Declarations
+  <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_3-3.html"
+TARGET="_top"
+>[CLHS-3.3]</A
+></A
+></DT
+><DT
+>3.4. <A
+HREF="lalist.html"
+>Lambda Lists
+   <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_3-4.html"
+TARGET="_top"
+>[CLHS-3.4]</A
+></A
+></DT
+><DT
+>3.5. <A
+HREF="eval-comp.html"
+>The Evaluation and Compilation Dictionary
+  <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_the_evalu_n_dictionary.html"
+TARGET="_top"
+>[CLHS-3.8]</A
+></A
+></DT
+></DL
+></DIV
+><P
+ALIGN="justify"
+>All the functions built by <A
+HREF="http://www.lisp.org/HyperSpec/Body/speope_function.html"
+TARGET="_top"
+><TT
+CLASS="function"
+>FUNCTION</TT
+></A
+>, <A
+HREF="http://www.lisp.org/HyperSpec/Body/fun_compile.html"
+TARGET="_top"
+><TT
+CLASS="function"
+>COMPILE</TT
+></A
+> and the like are
+ atoms.  There are built-in functions written in <A
+HREF="http://www.eskimo.com/~scs/C-faq/top.html"
+TARGET="_top"
+><B
+CLASS="command"
+>C</B
+></A
+>, compiled
+ functions (both of type <A
+HREF="http://www.lisp.org/HyperSpec/Body/typ_compiled-function.html"
+TARGET="_top"
+><TT
+CLASS="classname"
+>COMPILED-FUNCTION</TT
+></A
+>) and interpreted
+ functions (of type <A
+HREF="http://www.lisp.org/HyperSpec/Body/syscla_function.html"
+TARGET="_top"
+><TT
+CLASS="classname"
+>FUNCTION</TT
+></A
+>).</P
+><DIV
+CLASS="section"
+><H1
+CLASS="section"
+><A
+NAME="evaluation"
+></A
+>3.1. Evaluation
+  <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_3-1.html"
+TARGET="_top"
+>[CLHS-3.1]</A
+></H1
+><DIV
+CLASS="section"
+><H2
+CLASS="section"
+><A
+NAME="eval-environ"
+></A
+>3.1.1. Introduction to Environments
+  <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_3-1-1.html"
+TARGET="_top"
+>[CLHS-3.1.1]</A
+></H2
+><DIV
+CLASS="formalpara"
+><P
+><A
+NAME="the-env"
+></A
+><B
+>Macro <A
+HREF="eval.html#the-env"
+><TT
+CLASS="function"
+>EXT:THE-ENVIRONMENT</TT
+></A
+>. </B
+>As in Scheme, the macro <TT
+CLASS="sexp"
+>(<A
+HREF="eval.html#the-env"
+><TT
+CLASS="function"
+>EXT:THE-ENVIRONMENT</TT
+></A
+>)</TT
+>
+ returns the current lexical environment.  This works only in
+ interpreted code and is not compilable!</P
+></DIV
+><DIV
+CLASS="formalpara"
+><P
+><A
+NAME="eval-env"
+></A
+><B
+>Function <TT
+CLASS="sexp"
+>(EXT:EVAL-ENV
+ <TT
+CLASS="replaceable"
+><I
+>form</I
+></TT
+> <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_3-4-1.html"
+TARGET="_top"
+><TT
+CLASS="literal"
+>&#38;OPTIONAL</TT
+></A
+> <TT
+CLASS="replaceable"
+><I
+>env</I
+></TT
+>)</TT
+>. </B
+>evaluates a form in a given lexical environment, just as if the
+ form had been a part of the program that the environment came from.
+</P
+></DIV
+></DIV
+></DIV
+></DIV
+><DIV
+CLASS="NAVFOOTER"
+><HR
+ALIGN="LEFT"
+WIDTH="100%"><TABLE
+SUMMARY="Footer navigation table"
+WIDTH="100%"
+BORDER="0"
+CELLPADDING="0"
+CELLSPACING="0"
+><TR
+><TD
+WIDTH="33%"
+ALIGN="left"
+VALIGN="top"
+><A
+HREF="sharpsign.html"
+ACCESSKEY="P"
+>Prev</A
+></TD
+><TD
+WIDTH="34%"
+ALIGN="center"
+VALIGN="top"
+><A
+HREF="impnotes-top.html"
+ACCESSKEY="H"
+>Home</A
+></TD
+><TD
+WIDTH="33%"
+ALIGN="right"
+VALIGN="top"
+><A
+HREF="compilation.html"
+ACCESSKEY="N"
+>Next</A
+></TD
+></TR
+><TR
+><TD
+WIDTH="33%"
+ALIGN="left"
+VALIGN="top"
+>Sharpsign
+  <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_2-4-8.html"
+TARGET="_top"
+>[CLHS-2.4.8]</A
+></TD
+><TD
+WIDTH="34%"
+ALIGN="center"
+VALIGN="top"
+><A
+HREF="clhs-chapters.html"
+ACCESSKEY="U"
+>Up</A
+></TD
+><TD
+WIDTH="33%"
+ALIGN="right"
+VALIGN="top"
+>Compilation
+  <A
+HREF="http://www.lisp.org/HyperSpec/Body/sec_3-2.html"
+TARGET="_top"
+>[CLHS-3.2]</A
+></TD
+></TR
+></TABLE
+></DIV
+><div
+class="custom-footer"
+><hr
+width="100%"><table
+width="100%"
+><tr
+><td
+align="left"
+><a
+href="http://clisp.cons.org"
+><img
+src="clisp.png"
+width="48"
+height="48"
+alt="[CLISP home]"></a
+></td
+><td
+align="center"
+><a
+href="http://www.gnu.org"
+><img
+src="http://www.gnu.org/graphics/gnubanner.jpg"
+width="468"
+height="60"
+alt="[Come and see what GNU creates for YOU]"></a
+></td
+><td
+align="right"
+><a
+href="http://sourceforge.net"
+><img
+src="http://sourceforge.net/sflogo.php?group_id=1355&amp;type=2"
+width="125"
+height="37"
+alt="[SourceForge]"></a
+></td
+></tr
+></table
+></div
+></BODY
+></HTML
+>