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
1
vote
3 answers

Access object members when using the locals-gathering FUNCTION instead of FUNC

The low-level primitives in Rebol for functions and closures are FUNC and CLOS. Without explicitly telling the FUNC or CLOS to make something local, then assignments will not be local. x: 10 y: 20 foo: func [/local x] [ x: 304 y:…
1
vote
1 answer

REBOL 3 - How to add an event handler to print a key that is pressed?

My end goal is to have a handler that will do something if I press a key such as #"1" I have been reading the R3 View - Event Handling document, and trying to run the code in R3 View, I get no results. This is the handler I have copied: my-handler:…
kealist
  • 1,669
  • 12
  • 26
1
vote
1 answer

REBOL3 - How to set the initial size of a layout?

I need to set the initial size of a layout to be viewed. How do I do that? in R2, it was: view layout/size [button] 1000x1000 There is no longer a size refinement on layout and trying to set a facet does not work view layout [button] options…
kealist
  • 1,669
  • 12
  • 26
1
vote
1 answer

How do I access the value of a timer once set?

Given the R3-GUI code below, is there a way to access how much time is left in the timer? The timer ID is returned by set-timer but I am not sure if there is anything I can do with it? set-timer [print "done"] 60 In other words, what I am looking…
kealist
  • 1,669
  • 12
  • 26
1
vote
1 answer

REBOL3 - How to copy binary from binary! to block! properly

I'm trying to copy binary data to an array, and I'm getting a result I don't expect. I reduced it to this smaller problem that demonstrates it. b: #{0102030405060708} c: array (length? b) repeat num (length? b) [ print [ {Setting…
kealist
  • 1,669
  • 12
  • 26
1
vote
2 answers

Why can Rebol repeat not take a literal word type of value

The Rebol function set accepts an any-word! but repeat only accepts word! Is there a particular reason that repeat could not also accept a lit-word! ?
1
vote
1 answer

What is the meaning of a -12 error on a TCP open in Rebol 3

I am using async TCP networking to read the Stack Overflow Chat at a poll frequency of 1 - 2 seconds. Within 35 minutes or earlier, the connection fails like this in Linux ** Access error: cannot open: tcp://chat.stackoverflow.com:80 reason: -12 **…
Graham Chiu
  • 4,856
  • 1
  • 23
  • 41
1
vote
1 answer

how to update a Rebol3 GUI from a network event

I have written a test GUI application to see how to update a R3-GUI from a network event. The server port receives the event from a client, but using set-face window-inputarea msg fails to update the GUI unless I also mouse over or otherwise…
Graham Chiu
  • 4,856
  • 1
  • 23
  • 41
1
vote
1 answer

Do Saphirion Rebol 3 builds allow editable styled text?

I have a an idea for a Rebol script I want to write, but for this I need styled editable text. Does the current Saphirion Rebol 3 build contain the ability for styled editable text?
ingo
  • 521
  • 3
  • 7
1
vote
2 answers

How to start the Rebol REPL in a context besides the System context?

If you run a script in Rebol and say something like print {Hello}, you end up calling the system version of PRINT >> bind? 'print == make object! [ system: make object! [ product: 'core version: 2.101.0.2.5 build:…
1
vote
1 answer

How can I define APPEND for Rebol3 PORT?

I'm working on scheme in Rebol3 and I'd like to add APPEND action. However, adding APPEND actor to the scheme does nothing, result of append my-scheme://localhost foobar is my-scheme://localhostfoobar instead of my action. The documentation is bit…
rebolek
  • 1,281
  • 7
  • 16
1
vote
1 answer

How to implement UDP scheme in Rebol3

As far as I understand source code, net device is already prepared fot UDP, but how to make UDP scheme?
1
vote
2 answers

Rebol REPL Multi line if statement

I tried to run a multi line while statement in the Rebol REPL (aka, command line), like in http://www.rebol.com/docs/expert-intro.html if size [ print "ok" ] I typed it line by line but after if size [, it says: >> size: 0 == 0 >> if size…
Cradam
  • 2,282
  • 2
  • 13
  • 8
0
votes
0 answers

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 only telled me a half story. My problem is how to convert…
tianwen
  • 1
  • 2
0
votes
1 answer

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 changes all previous text to the current one…
awyr_agored
  • 613
  • 3
  • 19
1 2 3
13
14