User Tools

A PCRE internal error occured. This might be caused by a faulty plugin


This shows you the differences between two versions of the page.

Link to this comparison view

cl:functions:load-logical-pathname-translations [2019/11/11 05:00]
cl:functions:load-logical-pathname-translations [2020/09/26 00:00] (current)
Line 1: Line 1:
 +  * **load-logical-pathname-translations** //host// → //​just-loaded//​
 +====Arguments and Values====
 +  * //host// - a //​[[CL:​Glossary:​string]]//​.
 +  * //​just-loaded//​ - a //​[[CL:​Glossary:​generalized boolean]]//​.
 +Searches for and loads the definition of a //​[[CL:​Glossary:​logical host]]// named //host//, if it is not already defined. The specific nature of the search is //​[[CL:​Glossary:​implementation-defined]]//​.
 +If the //host// is already defined, no attempt to find or load a definition is attempted, and //​[[CL:​Glossary:​false]]//​ is returned. If the //host// is not already defined, but a definition is successfully found and loaded, //​[[CL:​Glossary:​true]]//​ is returned. Otherwise, an error is signaled.
 +(translate-logical-pathname "​hacks:​weather;​barometer.lisp.newest"​)
 +<​e>​Error:​ The logical host HACKS is not defined.</​e>​
 +(load-logical-pathname-translations "​HACKS"​)
 +;; Loading done. </o>
 +<​r>//​[[CL:​Glossary:​true]]//​ </r>
 +(translate-logical-pathname "​hacks:​weather;​barometer.lisp.newest"​) <​r>#​P"​HELIUM:​[SHARED.HACKS.WEATHER]BAROMETER.LSP;​0"​ </r>
 +(load-logical-pathname-translations "​HACKS"​) <​r>//​[[CL:​Glossary:​false]]//</​r>​
 +====Affected By====
 +====Exceptional Situations====
 +If no definition is found, an error of type **[[CL:​Types:​error]]** is signaled.
 +====See Also====
 +  * **[[CL:​Types:​logical-pathname|System Class LOGICAL-PATHNAME]]**
 +//​[[CL:​Glossary:​Logical pathname]]//​ definitions will be created not just by //​[[CL:​Glossary:​implementor|implementors]]//​ but also by //​[[CL:​Glossary:​programmers]]//​. As such, it is important that the search strategy be documented. For example, an //​[[CL:​Glossary:​implementation]]//​ might define that the definition of a //host// is to be found in a file called ''/​host/​.translations''​ in some specifically named directory.