qtxie on master
TESTS: adds tests for issue #47… (compare)
qtxie on master
FIX: issue #4799 (Binary and st… (compare)
qtxie on master
FIX: cannot find some macro def… (compare)
Compare:
REBOL
>> str: "one two three"
== "one two three"
>> set [value str] load/next str
== [one " two three"]
>> set [value str] load/next str
== [two " three"]
>> set [value str] load/next str
== [three ""]
Red:
>> str: "one two three"
== "one two three"
>> load/next str 'str
== one
>> load/next str 'str
== two
>> load/next str 'str
== three
@toomasv So in Red you are forced to use the same word that contains the source series.
/next => Load the next value only, updates source series word.
position [word!] "Word updated with new series position."
a: {does x: 22 print ["hello"] probe x}
== {does x: 22 print ["hello"] probe x}
>> load/next {x: 22 print ["hello"] probe x} 'a
== x:
>> load/next a 'val
== x:
>> load/next a 'val
== x:
>> load/next a 'a
== does
>> load/next a 'a
== x:
>> load/next a 'a
== 22
While in Rebol it can be any word. I don't understand the reason but it's ok.
load
>> str: "one two three"
== "one two three"
>> load/next str 'str1
== one
>> load/next str1 'str2
== two
>> load/next str2 'str3
== three
parse text blk-rule: [
some [
str:
newline |
#";" [thru newline | to end] new: (probe copy/part str new) |
[#"[" | #"("] blk-rule |
[#"]" | #")"] break |
skip (value: load/next str 'new probe :value) :new
]
]
@ldci good job!
@greggirwin An old journalist from the parliament in my country once said on TV:
A specialist is someone who knows almost everything about almost nothing.
A journalist is someone who knows almost nothing about almost everything.
So you are a specialist, the right person to ask. 😊