Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chapter11_variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ <h2 id='builtins'>Builtins</h2> <hr/>

<p>Once we've changed the builtins to the correct type we can create a function that registers all of our builtins into an environment.</p>

<p>For each builtin we want to create a function <code>lval</code> and symbol <code>lval</code> with the given name. We then register these with the environment using <code>lenv_put</code>. The environment always takes or returns copies of a values, so we need to remember to delete these two <code>lval</code> after registration as we won't need them any more.</p>
<p>For each builtin we want to create a function <code>lval</code> and symbol <code>lval</code> with the given name. We then register these with the environment using <code>lenv_put</code>. The environment always takes or returns copies of a value, so we need to remember to delete these two <code>lval</code> after registration as we won't need them any more.</p>

<p>If we split this task into two functions we can neatly register all of our builtins with some environment.</p>

Expand Down