《通链参考手册》


Macro FORMATTER

●语法设定:

formatter control-string => function

●参数和值:

control-string---a format string; not evaluated.

function---a function.

●详情:

Returns a function which has behavior equivalent to:

  #'(lambda (*standard-output* &rest arguments)
      (apply #'format t control-string arguments)
      arguments-tail)

where arguments-tail is either the tail of arguments which has as its car the argument that would be processed next if there were more format directives in the control-string, or else nil if no more arguments follow the most recently processed argument.

●例子:

(funcall (formatter "~&~A~A") *standard-output* 'a 'b 'c)
>>  AB
=>  (C)

(format t (formatter "~&~A~A") 'a 'b 'c)
>>  AB
=>  NIL

●副作用: None.

●受制于: 无。

●例外情况:

Might signal an error (at macro expansion time or at run time) if the argument is not a valid format string.

●更多信息:

format

●说明: 无。


X3J13设计清单非标准部分,可查下面章节:


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案