File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 47
47
return (num > 0 );
48
48
}
49
49
50
+ #ifdef not_used
50
51
static void No_Nones_Or_Logic (REBVAL * arg ) {
51
52
arg = VAL_BLK_DATA (arg );
52
53
for (; NOT_END (arg ); arg ++ ) {
53
54
if (IS_NONE (arg ) || IS_LOGIC (arg )) Trap_Arg (arg );
54
55
}
55
56
}
57
+ #endif
56
58
57
59
/***********************************************************************
58
60
**
@@ -288,8 +290,10 @@ static void No_Nones_Or_Logic(REBVAL *arg) {
288
290
// make block! [1 2 3]
289
291
if (ANY_BLOCK (arg )) {
290
292
len = VAL_BLK_LEN (arg );
293
+ #ifdef not_used
291
294
if (len > 0 && type >= REB_PATH && type <= REB_LIT_PATH )
292
295
No_Nones_Or_Logic (arg );
296
+ #endif
293
297
ser = Copy_Values (VAL_BLK_DATA (arg ), len );
294
298
goto done ;
295
299
}
Original file line number Diff line number Diff line change @@ -654,9 +654,14 @@ Rebol [
654
654
--assert (mold to-path [1 2 3 ]) = "1/2/3"
655
655
--assert (mold to-path [1 none 3 ]) = "1/none/3"
656
656
;@@ https://github.com/Oldes/Rebol-issues/issues/477
657
- --assert error? try [to-path [1 #[none] 3 ]]
658
- --assert error? try [to-path [1 #[true] 3 ]]
659
- --assert error? try [to-path [1 #[false] 3 ]]
657
+ --assert path? p: try [to-path b: [1 #[none] #[true] [] () #{} ]]
658
+ --assert integer? p/1
659
+ --assert none? p/2
660
+ --assert true? p/3
661
+ --assert block? p/4
662
+ --assert paren? p/5
663
+ --assert binary? p/6
664
+ --assert b = to-block p
660
665
661
666
===end-group===
662
667
You can’t perform that action at this time.
0 commit comments