emacs.d/clones/lisp/www.cliki.net/macro example.html

105 lines
5.3 KiB
HTML
Raw Normal View History

2022-10-07 15:47:14 +02:00
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CLiki: macro example</title>
<link rel="alternate" type="application/atom+xml" title="ATOM feed of edits to current article"
href="https://www.cliki.net/site/feed/article.atom?title=macro%20example">
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="static/css/colorize.css">
</head>
<body>
<span class="hidden">CLiki - macro example</span>
<div id="content"><div id="content-area"><div id="article-title">macro example</div><div id="article">Some <a href="CLiki.html" class="internal">CLiki</a> pages contain <a href="Lisp.html" class="category">Lisp</a> macros:
<ul>
<li>
<a href="call-next-macro.html" class="internal">call-next-macro</a> -
Here's a <a href="macro&#32;example.html" class="category">macro example</a> that may be less of a headache to understand than <a href="rebinding.html" class="internal">rebinding</a>
</li>
<li>
<a href="CLPfAI.html" class="internal">CLPfAI</a> -
Common Lisp Programming for <a href="Artificial&#32;Intelligence.html" class="category">Artificial Intelligence</a>
</li>
<li>
<a href="COLLECTING.html" class="internal">COLLECTING</a> -
Common Lispy ways of collecting values during evaluation are diverse; here we discuss some well established and some proposed
</li>
<li>
<a href="GENSYMLET.html" class="internal">GENSYMLET</a> -
(defmacro gensymlet ((&amp;rest bindings) &amp;body body)
</li>
<li>
<a href="Infix.html" class="internal">Infix</a> -
The infix notation for arithmetic in Common Lisp
</li>
<li>
<a href="List&#32;Comprehension.html" class="internal">List Comprehension</a> -
Refer to Wikipedia's article on <a href="https://en.wikipedia.org/wiki/List_comprehension">List Comprehension</a>
</li>
<li>
<a href="memoize-form.html" class="internal">memoize-form</a> -
A simpler need than memoizing the results of a function with arguments is that of memoizing the results of a form
</li>
<li>
<a href="Named&#32;multiple-values.html" class="internal">Named multiple-values</a> -
Named-multiple-values is a piece of macrology that enables one to deal with
</li>
<li>
<a href="ORF.html" class="internal">ORF</a> -
A macro seen in some utility/<a href="convenience&#32;library.html" class="internal">convenience</a> layers
</li>
<li>
<a href="Programming&#32;style.html" class="internal">Programming style</a> -
These are suggestions for programming style, some undisputable, some my (Stanisław Halik) whims
</li>
<li>
<a href="rebinding.html" class="internal">rebinding</a> -
Here's a <a href="macro&#32;example.html" class="category">macro example</a>
</li>
<li>
<a href="Special&#32;Slots.html" class="internal">Special Slots</a> -
A kind of <a href="https://gitlab.common-lisp.net/dcooper/zacl/-/blob/master/fake-slots.lisp">pseudo-slot</a> where the value is stored in a hidden <a href="https://www.cliki.net/site/HyperSpec/Body/acc_symbol-value.html" class="hyperspec">symbol-value</a> outside of the instance
</li>
<li>
<a href="with-unique-names.html" class="internal">with-unique-names</a> -
Macro WITH-UNIQUE-NAMES
</li>
</ul></div></div>
<div id="footer" class="buttonbar"><ul><li><a href="macro&#32;example.html">Current version</a></li>
<li><a href="https://www.cliki.net/site/history?article=macro%20example">History</a></li>
<li><a href="https://www.cliki.net/site/backlinks?article=macro%20example">Backlinks</a></li><li><a href="https://www.cliki.net/site/edit-article?title=macro%20example&amp;from-revision=3770841366">Edit</a></li><li><a href="https://www.cliki.net/site/edit-article?create=t">Create</a></li></ul></div>
</div>
<div id="header-buttons" class="buttonbar">
<ul>
<li><a href="https://www.cliki.net/">Home</a></li>
<li><a href="https://www.cliki.net/site/recent-changes">Recent Changes</a></li>
<li><a href="CLiki.html">About</a></li>
<li><a href="Text&#32;Formatting.html">Text Formatting</a></li>
<li><a href="https://www.cliki.net/site/tools">Tools</a></li>
</ul>
<div id="search">
<form action="https://www.cliki.net/site/search">
<label for="search_query" class="hidden">Search CLiki</label>
<input type="text" name="query" id="search_query" value="" />
<input type="submit" value="search" />
</form>
</div>
</div>
<div id="pageheader">
<div id="header">
<span id="logo">CLiki</span>
<span id="slogan">the common lisp wiki</span>
<div id="login"><form method="post" action="https://www.cliki.net/site/login">
<label for="login_name" class="hidden">Account name</label>
<input type="text" name="name" id="login_name" class="login_input" />
<label for= "login_password" class="hidden">Password</label>
<input type="password" name="password" id="login_password" class="login_input" />
<input type="submit" name="login" value="login" id="login_submit" /><br />
<div id="register"><a href="https://www.cliki.net/site/register">register</a></div>
<input type="submit" name="reset-pw" value="reset password" id="reset_pw" />
</form>
</div>
</div>
</div>
</body></html>