User Tools


Differences

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

Link to this comparison view

cl:functions:simple-condition-format-control [2019/09/14 05:00]
cl:functions:simple-condition-format-control [2019/09/20 08:00] (current)
Line 1: Line 1:
 +====== Function SIMPLE-CONDITION-FORMAT-CONTROL,​ SIMPLE-CONDITION-FORMAT-ARGUMENTS ======
 +
 +====Syntax====
 +  * **simple-condition-format-control** //​condition//​ → //​format-control//​
 +  * **simple-condition-format-arguments** //​condition//​ → //​format-arguments//​
 +
 +====Arguments and Values====
 +  * //​condition//​ - a //​[[CL:​Glossary:​condition]]//​ of //​[[CL:​Glossary:​type]]//​ **[[CL:​Types:​simple-condition]]**.
 +  * //​format-control//​ - a //​[[CL:​Glossary:​format control]]//​.
 +  * //​format-arguments//​ - a //​[[CL:​Glossary:​list]]//​.
 +
 +====Description====
 +**simple-condition-format-control** returns the //​[[CL:​Glossary:​format control]]// needed to process the //​condition//'​s //​[[CL:​Glossary:​format argument|format arguments]]//​.
 +
 +**simple-condition-format-arguments** returns a //​[[CL:​Glossary:​list]]//​ of //​[[CL:​Glossary:​format argument|format arguments]]//​ needed to process the //​condition//'​s //​[[CL:​Glossary:​format control]]//​.
 +
 +====Examples====
 +<​blockquote>​
 +([[CL:​Macros:​defparameter]] *foo* 
 +  ([[CL:​Macros:​make-condition]] '​simple-condition :​format-control "Hi ~S" :​format-arguments '​(ho))) <​r>​*FOO*</​r>​
 +
 +([[CL:​Functions:​apply]] #'​[[CL:​Functions:​format]] [[CL:​Constant Variables:​nil]] ​
 +      (simple-condition-format-control *foo*) ​
 +      (simple-condition-format-arguments *foo*)) <​r>"​Hi HO"</​r>​
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +None.
 +
 +====See Also====
 +**[[CL:​Functions:​simple-condition|Condition Type SIMPLE-CONDITION]]**,​ {\secref\ConditionSystemConcepts}
 +
 +====Notes====
 +None.
 +
 +\issue{FORMAT-STRING-ARGUMENTS:​SPECIFY}