We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08bdedf commit 2aa6c68Copy full SHA for 2aa6c68
src/core/t-word.c
@@ -98,7 +98,7 @@
98
return R_ARG2;
99
}
100
else {
101
- if (IS_STRING(arg) || IS_REF(arg)) {
+ if (IS_STRING(arg) || IS_REF(arg) || IS_TAG(arg)) {
102
REBYTE *bp;
103
REBCNT len;
104
// Set sym. Rest is set below.
src/tests/units/word-test.r3
@@ -20,6 +20,11 @@ Rebol [
20
--assert 1 = length? to-word to-string to-char 126
21
--assert 1 = length? to-word to-string to-char 128
22
23
+ --test-- "Word from tag"
24
+ ;@@ https://github.com/Oldes/Rebol-wishes/issues/2
25
+ --assert 'a = to word! <a>
26
+ --assert error? try [to word! <a b>]
27
+
28
===end-group===
29
30
===start-group=== "word compare"
0 commit comments