Questions tagged [rebol3]

A cross-platform data exchange language and a multi-paradigm dynamic programming language.

A cross-platform data exchange language and a multi-paradigm dynamic programming language designed by Carl Sassenrath for network communications and distributed computing.

207 questions
4
votes
1 answer

How to open/write/read port in REBOL3?

I have this code in REBOL2: port: open/direct tcp://localhost:8080 insert port request result: copy port close port What would be equivalent in REBOL3?
Oldes
  • 937
  • 1
  • 9
  • 24
4
votes
1 answer

How to specify in Rebol3 the open/exe action for the R3 script : the R3 exe

related to this question: How do you start a Rebol3 GUI script without the console showing? As I can't quote there because of my low reputation, I opened a new more specific question. How can that be done exactly, or where can I find more details…
AndreasL
  • 41
  • 1
4
votes
1 answer

What's the purpose of #[datatype] constructor in Rebol

I just came across this syntax in Rebol to construct some values: >> #[email! "me@host.com"] == me@host.com This seems to be equivalent to >> to email! "me@host.com" == me@host.com and this >> #[string! "hello"] == "hello" While these error…
Shixin Zeng
  • 1,458
  • 1
  • 10
  • 14
4
votes
2 answers

Find/replace string that spans lines in a file with REBOL

I have an HTML page, and I need to replace a couple of lines in it. However, using replace can't seem to find anything bigger than a single line. This is what I would like to replace (there are multiple instances of it in the page): ....
James Irwin
  • 1,171
  • 8
  • 21
4
votes
1 answer

How do I ignore lines that are commented out when parsing?

I have a PHP array that I'm parsing to get email addresses. Sometimes I'll want to comment an entry so I can use a different value for testing. Here's an example of the array: array('system.email' => array( 'to' => array( 'contactus' =>…
Darrell Brogdon
  • 6,843
  • 9
  • 47
  • 62
4
votes
2 answers

What's known about UTYPE! in REBOL 3?

The only information I can find on the datatype UTYPE! is "not yet been documented for R3" and "user defined datatype", still giving a shred of hope that I can break out of Rebol's canon of predefined datatypes and formulate the polymorphism of my…
Memophenon
  • 93
  • 6
4
votes
2 answers

Fixing the Rebol3 example calculator to use normal math operator precedence

In the example calculator: REBOL [title: "Calculator"] do %r3-gui.r3 stylize [ btn: button [ facets: [init-size: 50x50] actors: [on-action:[set-face f join get-face f get-face face]] ] ] view [ hgroup [ f: field…
Kev
  • 15,899
  • 15
  • 79
  • 112
4
votes
1 answer

r3-gui can't input chinese in Pinyin

The sometext field can't input any Chinese characters now: REBOL [ title: "test" ] load-gui view [ sometext: field ]
ttkk1024
  • 41
  • 2
  • 3
4
votes
3 answers

Difference between "errors/exceptions" and "throw/catch"?

I'm a bit confused over error handling in Rebol. It has THROW and CATCH constructions: >> repeat x 10 [if x = 9 [throw "Nine!"]] ** Throw error: no catch for throw: make error! 2 >> catch [repeat x 10 [if x = 9 [throw "Nine!"]]] == "Nine!" But…
4
votes
1 answer

Difference between BREAK and REJECT in PARSE

Both in Rebol and Red, there are two PARSE key words: break and reject which have similar behavior: break out of a match loop (such as any, some, while), the difference is that break always indicating success while reject indicate failure. I know…
Wayne Cui
  • 835
  • 7
  • 15
4
votes
2 answers

Rebol COLLECT: keep the order of the source data in a loop

There is some source data, like [1 2 3 4 "a" "b" "c" "d"], four items as a group. I want to extract some data at specific positions, such as the first, third, and fourth from each group. There is my code: data: [1 2 3 4 "a" "b" "c" "d"] output: copy…
Wayne Cui
  • 835
  • 7
  • 15
4
votes
4 answers

Perform file encoding conversion with Rebol 3

I want to use Rebol 3 to read a file in Latin1 and convert it to UTF-8. Is there a built-in function I can use, or some external library? Where I can find it?
giuliolunati
  • 766
  • 5
  • 14
4
votes
1 answer

Rebol 3 text rendering issue using GOBs

I'm trying to better understand the Rebol 3 graphics at a lower level (i.e. not using R3-GUI). I'm having a problem rendering text in a draw gob. This works: REBOL [] par: make system/standard/para [] gob-svg: make gob! [ ;this GOB is just for SVG…
4
votes
0 answers

Is it possible to call SOAP web services with Rebol 3 cURL binding?

I have some Rebol 2 code calling a SOAP web service using the shell interface function CALL: soap-request: rejoin [{ } …
dreamyToto
  • 131
  • 2
4
votes
2 answers

In a series! what is the best way of removing the last element

What is the most succinct way of removing the last element in a Rebol series? Options I have found so far are s: "abc" head remove back tail s and s: "abc" take/last s
johnk
  • 1,102
  • 7
  • 12