17.6.1.2212 SLITERAL STRING

Interpretation:

Interpretation semantics for this word are undefined.

Compilation:

( c-addr1 u -- )

Append the run-time semantics given below to the current definition.

Run-time:

( -- c-addr2 u )

Return c-addr2 u describing a string consisting of the characters specified by c-addr1 u during compilation. A program shall not alter the returned string.

See:

Rationale:

The current functionality of 6.1.2165 S" may be provided by the following definition:

: S" ( "ccc<quote>" -- )
   [CHAR] " PARSE POSTPONE SLITERAL
; IMMEDIATE

Testing:

T{ : s14 [ s1 ] SLITERAL ; -> }T
T{ s1 s14 COMPARE -> 0 }T
T{ s1 s14 ROT = ROT ROT = -> <TRUE> <FALSE> }T

ContributeContributions