208 questions
0 votes
2 answers
63 views
How to turn off Rebol3 terminal coloring?
I'm on macos 10.15.7 using "Rebol/Bulk 3.15.0 (23-Nov-2023/18:23 UTC)" from here: https://github.com/Oldes/Rebol3/releases Is there a way to turn off the fancy colors? I use a light ...
0 votes
0 answers
157 views
How to convert a binary in surrogate pairs to unicode?
Anyone can help figure out a surrogate pairs problem? The source binary is #{EDA0BDEDB883}(encoded by Hessian/Java), how to decode it to 😃 or "^(1F603)"? I have checked UTF-16 wiki, but it ...
0 votes
1 answer
151 views
Rebol - How can I append text from a text field to a text list?
I've been exploring the amazing Rebol programming tool. I've run into a problem of trying to append text from a text field into the data of a text-list. My code below adds text to the text-list but ...
1 vote
2 answers
166 views
How to evaluate refinement of a function when calling this function in Red/Rebol
>> f: func [x /a][either a [x + 2] [x + 1]] == func [x /a][either a [x + 2] [x + 1]] >> b: /a == /a >> f/b 1 *** Script Error: f has no refinement called b *** Where: f *** Stack: ...
2 votes
1 answer
231 views
How to read key from keyboad in red/rebol
We can get input from console by input or ask, which means to press some keys on keyboard and terminate the input by pressing the key "Enter". I'd like to know if there is a way to get a key ...
0 votes
2 answers
108 views
Value of local variables in a function seems not be released post function calling in Red/Rebol language
I construct a function named find-all to find all indexes of a given item in a series by "recursive". The first calling of find-all gives the right output. However from the second calling, ...
1 vote
1 answer
133 views
How to make anonymous function work in Red/Rebol
In Red/Rebol, parentheses () can be used to evaluate expressions like this: >> (1 + 2 3 + 4) == 7 However, when I use parentheses to evalute an anonymous function, it fails(please see the ...
1 vote
2 answers
157 views
Tracer function written in Rebol
It is possible in Rebol (Red, R3 Ren-c) to write a function similar to TRACE that produces the following result: foo: func [val1 val2 /local temp] [ temp: val1 + 5 val2 + temp ] bar: ...
1 vote
3 answers
95 views
Rounding TIME! to a number of days in Rebol
I've found one way to turn a TIME! in Rebol into a number of days: add it to a date and then subtract that same date. >> dummy-date: 12-Dec-2012 == 12-Dec-2012 >> (dummy-date + 44835:11:...
-1 votes
1 answer
318 views
Red or Rebol 3: choice is hard
I have tested Red, as for the language It's easy enough as it doesn't differ much from Rebol. But I really miss some console features, the most annoying for me is red --do and autoloading script ...
0 votes
1 answer
346 views
Rebol for android showing very small gui
I tried to make an app for android mobile using following steps: Download and install r3-droid.apk from http://development.saphirion.com/experimental/r3-droid.apk Download r3-gui.r3 Create simple ...
1 vote
3 answers
358 views
Inverse of `split` function: `join` a string using a delimeter
IN Red and Rebol(3), you can use the split function to split a string into a list of items: >> items: split {1, 2, 3, 4} {,} == ["1" " 2" " 3" " 4"] What is the corresponding inverse function ...
3 votes
2 answers
168 views
Breaking out of a recursive function
I'm walking through a set of nested blocks and want to stop the walk when I've found the value I'm looking for. For reasons that are beyond the scope of this question, I can't use PARSE for this ...
6 votes
1 answer
503 views
how to properly parse paired html tags?
the question is about parsing an html stream obtained by load/markup in a way you can get html tags constituent parts, i.e. when you find <div id="one">my text</div> you should end with ...
3 votes
1 answer
79 views
How to use words from a named module inside another?
I'm looking for an example of how to use words exported from a named module inside another module. From the help of import REFINEMENTS: /version ver [tuple!] Module must be this version or ...