| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<html> |
| 3 |
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 6 |
<title>Examples of Merging Pathnames (ANSI and GNU Common Lisp Document)</title> |
| 7 |
|
| 8 |
<meta name="description" content="Examples of Merging Pathnames (ANSI and GNU Common Lisp Document)"> |
| 9 |
<meta name="keywords" content="Examples of Merging Pathnames (ANSI and GNU Common Lisp Document)"> |
| 10 |
<meta name="resource-type" content="document"> |
| 11 |
<meta name="distribution" content="global"> |
| 12 |
<meta name="Generator" content="makeinfo"> |
| 13 |
<link href="index.html" rel="start" title="Top"> |
| 14 |
<link href="Merging-Pathnames.html" rel="up" title="Merging Pathnames"> |
| 15 |
<link href="Logical-Pathnames.html" rel="next" title="Logical Pathnames"> |
| 16 |
<link href="Merging-Pathnames.html" rel="prev" title="Merging Pathnames"> |
| 17 |
<style type="text/css"> |
| 18 |
<!-- |
| 19 |
a.summary-letter {text-decoration: none} |
| 20 |
blockquote.indentedblock {margin-right: 0em} |
| 21 |
div.display {margin-left: 3.2em} |
| 22 |
div.example {margin-left: 3.2em} |
| 23 |
div.lisp {margin-left: 3.2em} |
| 24 |
kbd {font-style: oblique} |
| 25 |
pre.display {font-family: inherit} |
| 26 |
pre.format {font-family: inherit} |
| 27 |
pre.menu-comment {font-family: serif} |
| 28 |
pre.menu-preformatted {font-family: serif} |
| 29 |
span.nolinebreak {white-space: nowrap} |
| 30 |
span.roman {font-family: initial; font-weight: normal} |
| 31 |
span.sansserif {font-family: sans-serif; font-weight: normal} |
| 32 |
ul.no-bullet {list-style: none} |
| 33 |
--> |
| 34 |
</style> |
| 35 |
|
| 36 |
|
| 37 |
</head> |
| 38 |
|
| 39 |
<body lang="en"> |
| 40 |
<span id="Examples-of-Merging-Pathnames"></span><div class="header"> |
| 41 |
<p> |
| 42 |
Previous: <a href="Merging-Pathnames.html" accesskey="p" rel="prev">Merging Pathnames</a>, Up: <a href="Merging-Pathnames.html" accesskey="u" rel="up">Merging Pathnames</a> </p> |
| 43 |
</div> |
| 44 |
<hr> |
| 45 |
<span id="Examples-of-Merging-Pathnames-1"></span><h4 class="subsubsection">19.2.3.1 Examples of Merging Pathnames</h4> |
| 46 |
|
| 47 |
<p>Although the following examples are possible to execute only in |
| 48 |
<i>implementations</i> which permit <tt>:unspecific</tt> in the indicated |
| 49 |
position andwhich permit four-letter type components, they serve to illustrate |
| 50 |
the basic concept of <i>pathname</i> merging. |
| 51 |
</p> |
| 52 |
<div class="example"> |
| 53 |
<pre class="example"> (pathname-type |
| 54 |
(merge-pathnames (make-pathname :type "LISP") |
| 55 |
(make-pathname :type "TEXT"))) |
| 56 |
⇒ "LISP" |
| 57 |
|
| 58 |
(pathname-type |
| 59 |
(merge-pathnames (make-pathname :type nil) |
| 60 |
(make-pathname :type "LISP"))) |
| 61 |
⇒ "LISP" |
| 62 |
|
| 63 |
(pathname-type |
| 64 |
(merge-pathnames (make-pathname :type :unspecific) |
| 65 |
(make-pathname :type "LISP"))) |
| 66 |
⇒ :UNSPECIFIC |
| 67 |
</pre></div> |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
</body> |
| 74 |
</html> |