All Manuals > LispWorks User Guide and Reference Manual > 33 The COMMON-LISP Package

NextPrevUpTopContentsIndex

make-string

Function
Summary

Creates and returns a string.

Package

common-lisp

Signature

make-string size &key initial-element element-type => string

Arguments

size

A non-negative integer.

initial-element

A character. The default is implementation-dependent.

element-type

A type specifier. The default is defined below.

Values

string

A string.

Description

The function make-string behaves as specified in the ANSI Common Lisp Standard with one exception: the default value of element-type is the value of *default-character-element-type* or the type of initial-element if that is a supertype of *default-character-element-type*

Therefore for strict compliance you must call set-default-character-element-type to set the default string element type to character.

See also

*default-character-element-type*
set-default-character-element-type
simple-string


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex