262 lines
6 KiB
HTML
262 lines
6 KiB
HTML
|
<!DOCTYPE HTML>
|
||
|
<HTML LANG="en-us"
|
||
|
><HEAD
|
||
|
><TITLE
|
||
|
>load-logical-pathname-translations | Common Lisp Nova Spec</TITLE
|
||
|
><META CHARSET="US-ASCII"
|
||
|
><LINK REL="canonical" HREF="f_load-logical-pathname-translations.html"
|
||
|
><LINK REL="next" HREF="f_logical-pathname-translations.html" TYPE="text/html" TITLE="logical-pathname-translations"
|
||
|
><LINK REL="prev" HREF="f_pathname-host.html" TYPE="text/html" TITLE="pathname-host, pathname-device, pathname-directory, pathname-name, pathname-type, pathname-version"
|
||
|
><LINK REL="up" HREF="19_4_Filenames_Dictionary.html" TYPE="text/html" TITLE="19.4 Filenames 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"
|
||
|
>→ <A HREF="19_Filenames.html"
|
||
|
>19. Filenames</A
|
||
|
></SPAN
|
||
|
> <SPAN CLASS="breadcrumb-item"
|
||
|
>→ <A HREF="19_4_Filenames_Dictionary.html"
|
||
|
>19.4 Filenames Dictionary</A
|
||
|
></SPAN
|
||
|
> <SPAN CLASS="breadcrumb-item"
|
||
|
>→ <A HREF="f_load-logical-pathname-translations.html"
|
||
|
>load-logical-pathname-translations</A
|
||
|
></SPAN
|
||
|
></DIV
|
||
|
><DIV CLASS="apropos"
|
||
|
><DIV CLASS="apropos-io"
|
||
|
><A HREF="f_pathname-host.html" CLASS="prev"
|
||
|
>←</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="f_logical-pathname-translations.html" CLASS="next"
|
||
|
>→</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="load-logical-pathname-translations"
|
||
|
></SPAN
|
||
|
><B
|
||
|
>load-logical-pathname-translations</B
|
||
|
></TD
|
||
|
><TD ALIGN="RIGHT" VALIGN="BASELINE" WIDTH="0" NOWRAP="NOWRAP" CLASS="ftype"
|
||
|
><I
|
||
|
>Function</I
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><HR
|
||
|
></DIV
|
||
|
><UL CLASS="subtoc"
|
||
|
></UL
|
||
|
><DL
|
||
|
><DT
|
||
|
><B
|
||
|
>Syntax</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
><B
|
||
|
>load-logical-pathname-translations</B
|
||
|
> <SPAN CLASS="cmssi"
|
||
|
>host</SPAN
|
||
|
> <SPAN CLASS="arrow"
|
||
|
>→</SPAN
|
||
|
> <SPAN CLASS="cmssi"
|
||
|
>just-loaded</SPAN
|
||
|
></P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Arguments and Values</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
><VAR CLASS="param"
|
||
|
>host</VAR
|
||
|
> — a <A HREF="26_1_Glossary.html#string"
|
||
|
><EM CLASS="term"
|
||
|
>string</EM
|
||
|
></A
|
||
|
>. </P
|
||
|
><P CLASS="j"
|
||
|
><EM CLASS="term"
|
||
|
>just-loaded</EM
|
||
|
> — a <A HREF="26_1_Glossary.html#generalized_boolean"
|
||
|
><EM CLASS="term"
|
||
|
>generalized boolean</EM
|
||
|
></A
|
||
|
>.</P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Description</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
>Searches for and loads the definition of a <A HREF="26_1_Glossary.html#logical_host"
|
||
|
><EM CLASS="term"
|
||
|
>logical host</EM
|
||
|
></A
|
||
|
> named <VAR CLASS="param"
|
||
|
>host</VAR
|
||
|
>, if it is not already defined. The specific nature of the search is <A HREF="26_1_Glossary.html#implementation-defined"
|
||
|
><EM CLASS="term"
|
||
|
>implementation-defined</EM
|
||
|
></A
|
||
|
>. </P
|
||
|
><P CLASS="j"
|
||
|
>If the <VAR CLASS="param"
|
||
|
>host</VAR
|
||
|
> is already defined, no attempt to find or load a definition is attempted, and <A HREF="26_1_Glossary.html#false"
|
||
|
><EM CLASS="term"
|
||
|
>false</EM
|
||
|
></A
|
||
|
> is returned. If the <VAR CLASS="param"
|
||
|
>host</VAR
|
||
|
> is not already defined, but a definition is successfully found and loaded, <A HREF="26_1_Glossary.html#true"
|
||
|
><EM CLASS="term"
|
||
|
>true</EM
|
||
|
></A
|
||
|
> is returned. Otherwise, an error is signaled.</P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Examples</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><PRE CLASS="screen"
|
||
|
> (translate-logical-pathname "hacks:weather;barometer.lisp.newest")
|
||
|
<SPAN CLASS="cmr"
|
||
|
>⊳</SPAN
|
||
|
> Error: The logical host HACKS is not defined.
|
||
|
(load-logical-pathname-translations "HACKS")
|
||
|
<SPAN CLASS="cmr"
|
||
|
>⊳</SPAN
|
||
|
> ;; Loading SYS:SITE;HACKS.TRANSLATIONS
|
||
|
<SPAN CLASS="cmr"
|
||
|
>⊳</SPAN
|
||
|
> ;; Loading done.
|
||
|
<SPAN CLASS="cmsy"
|
||
|
><SPAN CLASS="arrow"
|
||
|
>→</SPAN
|
||
|
></SPAN
|
||
|
> <A HREF="26_1_Glossary.html#true"
|
||
|
><EM CLASS="term"
|
||
|
>true</EM
|
||
|
></A
|
||
|
>
|
||
|
(translate-logical-pathname "hacks:weather;barometer.lisp.newest")
|
||
|
<SPAN CLASS="cmsy"
|
||
|
><SPAN CLASS="arrow"
|
||
|
>→</SPAN
|
||
|
></SPAN
|
||
|
> #P"HELIUM:[SHARED.HACKS.WEATHER]BAROMETER.LSP;0"
|
||
|
(load-logical-pathname-translations "HACKS")
|
||
|
<SPAN CLASS="cmsy"
|
||
|
><SPAN CLASS="arrow"
|
||
|
>→</SPAN
|
||
|
></SPAN
|
||
|
> <A HREF="26_1_Glossary.html#false"
|
||
|
><EM CLASS="term"
|
||
|
>false</EM
|
||
|
></A
|
||
|
></PRE
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Exceptional Situations</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
>If no definition is found, an error of <A HREF="26_1_Glossary.html#type"
|
||
|
><EM CLASS="term"
|
||
|
>type</EM
|
||
|
></A
|
||
|
> <A HREF="t_error.html" CLASS="typeref"
|
||
|
><B
|
||
|
>error</B
|
||
|
></A
|
||
|
> is signaled.</P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>See Also</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
><A HREF="t_logical-pathname.html" CLASS="typeref"
|
||
|
><B
|
||
|
>logical-pathname</B
|
||
|
></A
|
||
|
></P
|
||
|
></DD
|
||
|
><DT
|
||
|
><B
|
||
|
>Notes</B
|
||
|
></DT
|
||
|
><DD
|
||
|
><P CLASS="j"
|
||
|
><A HREF="26_1_Glossary.html#logical_pathname"
|
||
|
><EM CLASS="term"
|
||
|
>Logical pathname</EM
|
||
|
></A
|
||
|
> definitions will be created not just by <EM CLASS="term"
|
||
|
>implementors</EM
|
||
|
> but also by <A HREF="26_1_Glossary.html#programmer"
|
||
|
><EM CLASS="term"
|
||
|
>programmers</EM
|
||
|
></A
|
||
|
>. As such, it is important that the search strategy be documented. For example, an <A HREF="26_1_Glossary.html#implementation"
|
||
|
><EM CLASS="term"
|
||
|
>implementation</EM
|
||
|
></A
|
||
|
> might define that the definition of a <VAR CLASS="param"
|
||
|
>host</VAR
|
||
|
> is to be found in a file called “<VAR CLASS="param"
|
||
|
>host</VAR
|
||
|
>.translations” in some specifically named directory.</P
|
||
|
></DD
|
||
|
></DL
|
||
|
></DIV
|
||
|
></DIV
|
||
|
><DIV CLASS="footer"
|
||
|
><DIV CLASS="btmnav"
|
||
|
><A HREF="f_pathname-host.html" CLASS="prev"
|
||
|
>←</A
|
||
|
><A HREF="f_logical-pathname-translations.html" CLASS="next"
|
||
|
>→</A
|
||
|
></DIV
|
||
|
><DIV CLASS="trail"
|
||
|
>Conversion to HTML copyright 2023 by Gilbert Baumann</DIV
|
||
|
></DIV
|
||
|
></DIV
|
||
|
><SCRIPT
|
||
|
>domReady();</SCRIPT
|
||
|
></BODY
|
||
|
></HTML
|
||
|
>
|