tur/sym-dynamic
stdlib/sym-dynamic.tur
opt-in runtime symbol interning (str->sym, SYM5).
Since: Phase SYM5
defn
str->sym
(str->sym [s : cstr] :)
intern a string into a symbol at runtime.
Parameters
| s | the NUL-terminated name to intern (without a leading colon) |
Returns
The interned symbol for s.
Example
(eq? :hello (str->sym "hello")) ; => true
Since: Phase SYM5