User Tools


Function STRING

Syntax

  • string xstring

Arguments and Values

Description

Returns a string described by x; specifically:

Examples

(string "already a string")

"already a string"

(string 'elm)

"ELM"

(string #\\c)

"c"

Affected By

None.

Exceptional Situations

In the case where a conversion is defined neither by this specification nor by the implementation, an error of type type-error is signaled.

See Also

Notes

coerce can be used to convert a sequence of characters to a string.

prin1-to-string, princ-to-string, write-to-string, or format (with a first argument of nil) can be used to get a string representation of a number or any other object.

\issue{CHARACTER-PROPOSAL:2-1-1} \issue{CHARACTER-PROPOSAL:2-1-1} \issue{STRING-COERCION:MAKE-CONSISTENT} \issue{STRING-COERCION:MAKE-CONSISTENT}