15.6.2.1909.40 NAME>STRING name-to-string TOOLS EXT
( nt -- c-addr u )
NAME>STRING returns the name of the word nt in the character string c-addr u. The case of the characters in the string is implementation-dependent. The buffer containing c-addr u may be transient and valid until the next invocation of NAME>STRING. A program shall not write into the buffer containing the resulting string.
See:
ContributeContributions
ruv [374] `NAME>STRING` result is transientRequest for clarification2025-01-22 16:50:21
15.6.2.1909.40 NAME>STRING
says:
The buffer containing c-addr u may be transient and valid until the next invocation of
NAME>STRING
.
What is the point of allowing the returned string to be in a transient buffer? Which implementation approach benefits from that?
In typical implementations, the lifetime of the returned string is the same as the lifetime of nt.