REBOL (Relative Expression Based Object Language) is a cross-platform data exchange and multi-paradigm dynamic programming language designed by Carl Sassenrath, for network communications and distributed computing. The language and its official implementation are developed by REBOL Technologies.
Questions tagged [rebol2]
101 questions
2
votes
1 answer
request-date in a rebol2 vid application
Can someone tell me why the following code is not working? It is supposed to set the date in a field when it loads, then allow the date to be changed by clicking on the field. I'm using rebol/view 2.7.8 on linux. Actually, I think this code used to…

user3650643
- 21
- 1
2
votes
1 answer
How to create Windows executable (.exe) from red lang?
I'm building a red lang application. How to create Windows executable (.exe) from red lang???

金馆长
- 217
- 2
- 7
2
votes
2 answers
Print binary data to stdout using Rebol
I'm using Rebol to produce binary output, but the output is not what I expected.
This is a simple test script, which prints all bytes from 0 to 255:
REBOL[]
for i 0 255 1 [
prin to char! i
]
Execute the test like this: rebol -q test.rebol |…

psmith
- 2,292
- 1
- 19
- 19
2
votes
2 answers
Why is the word red a boolean variable?
red>> red
== true
red>> type? red
== logic!
Just curious to know why is red a boolean variable?
(perhaps unrelated) Side note: rebol in REBOL 2.7 console is of type object!.

RAbraham
- 5,956
- 8
- 45
- 80
2
votes
2 answers
How do I put a menu in a rebol list (VID)?
I've got a VID list in Rebol2 and I want to make one of the columns some kind of menu from which I can select a value from a set of choices. The code that I'm using was based off of the list-widget-example.r. The set of choices is dynamic.
I tried…

Scott W
- 41
- 3
2
votes
4 answers
Output to stderr in REBOL2?
I am trying to get my CGI scripts running on my web host (which runs on FreeBSD). To debug why I keep getting the dreaded "premature end of script headers" error, their support recommended that I redirect all my output to stderr, rather than…

James Irwin
- 1,171
- 8
- 21
2
votes
3 answers
The word-browser in Rebol View2 is broken
The word browser is no longer working for me in Rebol2. Perhaps it can't download data from the rebol.com website. How can I get it working? I find nothing about this on stackoverflow.com or doing a google search.

Louis
- 21
- 1
2
votes
1 answer
Rebol iterated face- truncating text
Using this code:
view layout [
t: text-list "this line truncated> lfkjsdflksjfslfsdjfsdlldskjflsdkfj" with [
text-pane: func [face id][
if pair? id [return 1 + second id / iter/size]
iter/offset:…

dogeye
- 177
- 6
2
votes
1 answer
Why doesn't dynamically adding code to object take effect in Rebol2?
This question is about dynamically adding code to contexts or objects in rebol 2, it is related to question Dynamically adding words to a context in REBOL but it is not the same kind.
If I want to dynamically add code to a rebol objects using its…

Pep
- 451
- 2
- 9
2
votes
1 answer
Is it possible to reuse the main list "widget" in the librarian application?
The librarian (http://www.rebol.org/download-librarian.r) has a very neat way to display data, on the main list. I would like to use this kind of "widget" in another project, to display data from a database.
I tried quickly to look at the code, but…

Pierre
- 530
- 5
- 13
2
votes
2 answers
Rebol cd requires no %?
I'm using Rebol/Core 278-3.1 on Win-7 64-bit, launched from standard windows command shell. And I'm wondering how to explain to my young friend (a web designer by background) that the interpreter's CD command does not require the %.
It reminds me…

G. Robert Shiplett
- 119
- 6
2
votes
1 answer
Protecting object attributes in Rebol
I'm trying something quite basic in Rebol. I want to have a simple instance hierarchy - a question base instance and some question sub-instances. And I want to have some instance attributes protected.
What I'm doing now is:
_question: make object!…

Frank Ruben
- 105
- 7
1
vote
1 answer
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: f
>> f/:b 1
*** Script Error: f has no refinement called :b
***…

lyl
- 293
- 1
- 8
1
vote
2 answers
Rebol2/View question: How does the layout function in Rebol2 work?
Some functions that are used in the 'layout function do apparently not exist, yet 'layout works fine. But when you try to replace the 'layout function by an adapted version containing some debugging statements, the functions and undeclared variables…

iArnold
- 333
- 2
- 10
1
vote
1 answer
Handling 'none' when trying to find the index? of a value that doesn't exist in Rebol?
I have a block! x: ["one" "two" "three"]
index? find x "two" returns... 2
index? find x "four" returns...
** Script Error: index? expected series argument of type: series port
** Near: index? find x "twos"
What's the best way to have index?…

Atomica
- 23
- 6