LispWorks User Guide and Reference Manual > 22 Internationalization > 22.2 Character and String types > 22.2.3 String types

NextPrevUpTopContentsIndex

22.2.3.2 String types at compile time

The compiler always does type inferencing for simple-string as if *default-character-element-type* was set to character .

For example, when you declare something to be of type simple-string , the compiler will never treat it as simple-base-string. Therefore calls like

(schar (the simple-string x ) 0)

will work whether x is a simple-base-string, simple-text-string or simple-augmented-string.


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex