File tree 8 files changed +21
-20
lines changed
8 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,13 @@ offset?: func [
26
26
subtract index? series2 index? series1
27
27
]
28
28
29
- found? : func [
30
- "Returns TRUE if value is not NONE."
31
- value
32
- ] [
33
- not none? :value
34
- ]
29
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2053
30
+ ;found?: func [
31
+ ; "Returns TRUE if value is not NONE."
32
+ ; value
33
+ ;][
34
+ ; not none? :value
35
+ ;]
35
36
36
37
last?: single? : func [
37
38
"Returns TRUE if the series length is 1."
@@ -374,7 +375,7 @@ alter: func [
374
375
append series :value true
375
376
]
376
377
]
377
- found? unless remove (
378
+ to logic! unless remove (
378
379
either case [find/case series :value ] [find series :value ]
379
380
) [append series :value ]
380
381
]
Original file line number Diff line number Diff line change @@ -766,7 +766,7 @@ sys/make-scheme [
766
766
open? : func [
767
767
port [port! ]
768
768
] [
769
- found? all [object? port/state open? port/state/connection ]
769
+ all [object? port/state open? port/state/connection true ]
770
770
]
771
771
close : func [
772
772
port [port! ]
Original file line number Diff line number Diff line change @@ -998,7 +998,7 @@ mysql-driver: make object! [
998
998
]
999
999
blob-to-text: [blob text tinyblob tinytext mediumblob mediumtext longblob longtext]
1000
1000
unless none? text-type: select blob-to-text col/type [
1001
- unless found? find col/flags 'binary [
1001
+ unless find col/flags 'binary [
1002
1002
col/type: text-type
1003
1003
]
1004
1004
]
Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ TLS-init-cipher-suite: func [
399
399
(
400
400
ctx/key-method: to word! key-method
401
401
ctx/crypt-method: to word! cipher
402
- ctx/is-aead?: found? find [AES_128_GCM AES_256_GCM CHACHA20_POLY1305] ctx/crypt-method
402
+ ctx/is-aead?: to logic! find [AES_128_GCM AES_256_GCM CHACHA20_POLY1305] ctx/crypt-method
403
403
404
404
log-more [
405
405
"Key:^[ [1m" ctx/key-method
@@ -1871,7 +1871,7 @@ sys/make-scheme [
1871
1871
port
1872
1872
]
1873
1873
open? : func [ port [port! ]] [
1874
- found? all [port/state open? port/state/connection ]
1874
+ all [port/state open? port/state/connection true ]
1875
1875
]
1876
1876
close : func [ port [port! ] /local ctx check1 check2] [
1877
1877
log-more "CLOSE"
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ is-protected-error?: func[code][
370
370
371
371
--test-- "BinCode - FLOAT16, FLOAT, DOUBLE (write/read NAN)"
372
372
b: binary/write #{} [float16 1. #NaN float 1. #NaN double 1. #NaN ]
373
- --assert found ? find [
373
+ --assert not none ? find [
374
374
#{ 007E0000C07F000000000000F87F }
375
375
#{ 007E0000C0FF000000000000F8FF } ; when used clang compiler (should it be normalized?)
376
376
] b/buffer
Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ Rebol [
24
24
25
25
--test-- "find datatype!"
26
26
;@@ https://github.com/Oldes/Rebol-issues/issues/256
27
- --assert found ? find [#[datatype! string! ] #[datatype! binary! ]] #[datatype! binary! ]
28
- --assert found ? find reduce [string! binary! ] binary!
29
- --assert found ? find [#[datatype! string! ] #[datatype! binary! ]] #[datatype! binary! ]
30
- --assert found ? find ["test" ] string!
31
- --assert found ? find ["test" ] series!
27
+ --assert not none ? find [#[datatype! string! ] #[datatype! binary! ]] #[datatype! binary! ]
28
+ --assert not none ? find reduce [string! binary! ] binary!
29
+ --assert not none ? find [#[datatype! string! ] #[datatype! binary! ]] #[datatype! binary! ]
30
+ --assert not none ? find ["test" ] string!
31
+ --assert not none ? find ["test" ] series!
32
32
--assert none? find reduce [integer! binary! ] series!
33
33
--assert ["aha" ] = find reduce [integer! "aha" ] series!
34
- --assert found ? find any-string! ref!
34
+ --assert not none ? find any-string! ref!
35
35
36
36
===end-group===
37
37
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Rebol [
25
25
--assert object? *FX-DX8
26
26
--assert 0 = *FX-DX8/CHORUS
27
27
--assert 8 = *FX-DX8/REVERB
28
- --assert found ? find [ECHO FLANGER] *FX-DX8/name 4
28
+ --assert not none ? find [ECHO FLANGER] *FX-DX8/name 4
29
29
30
30
31
31
--test-- "enum with mixed specification"
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ output: make string! 10000
302
302
;** Functions
303
303
;******************************************************************************
304
304
305
- flag? : func [ 'word] [found ? find build-flags word]
305
+ flag? : func [ 'word] [not none ? find build-flags word]
306
306
307
307
macro+ : func [
308
308
"Appends value to end of macro= line"
You can’t perform that action at this time.
0 commit comments