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
1 answer

view with drop-down howto

For a view, I need to define a size, a drop-down with data, set its size and get the chosen value for input in some function. loadGui: func [] [ unview/all view layout [ Dropd_urls: drop-down (getUrlsEnd Urls) ] ] What is a logic…
Luis
  • 1,236
  • 5
  • 22
  • 31
1
vote
1 answer

parse html with single or double quotes

When using the parse dialect, how to parse tags that have properties enclosed by ' or '"`, as in: thru

thru

One way was to do: thru {

Luis
  • 1,236
  • 5
  • 22
  • 31

1
vote
1 answer

save to disk in append mode

save is used to store data in a format more directly usable by REBOL, as stated here write has an append mode but it saves data in a raw mode. My application needs to save a block of data (as a map!) to disk. Each couple of seconds it will generate…
Luis
  • 1,236
  • 5
  • 22
  • 31
1
vote
1 answer

Rebol3 make prep on Debian 8 fails with Script error: invalid argument: %../os/none

When I try to run make prep on 64-bit Debian the build fails with the error message Compressed 11626 to 3357 bytes: 28 percent of original ./r3-make -qs ../src/tools/make-os-ext.r # ok, but not always --- Make OS Ext Lib --- Version: 0 ** Script…
kjanz1899
  • 47
  • 7
1
vote
1 answer

How to write strict-greater? (-lesser?, -greater-or-equal?, -lesser-or-equal?)

Rebol and Red have a notion of the ordinary equal? function (offered infix simply as =) as being a sort of "natural equality". Hence it is willing to compare 1 = 1.0 even though one is an integer and the other a float... and to compare strings and…
1
vote
1 answer

Dynamic layout additions in Rebol3

I would like to dynamically add a button to the layout of a view, with the actor causing this addition belonging to a button that is already part of the layout. I started with this: REBOL [title: "Dynamic Button Addition"] tilesize: 60x60 curtile:…
Kev
  • 15,899
  • 15
  • 79
  • 112
1
vote
1 answer

Evaluating code blocks in Rebol3

I'm trying to improve the Sliding Tile Puzzle example by making the starting positions random. There's a better way to do this--"It is considered bad practice to convert values to strings and join them together to pass to do for evaluation."--but…
Kev
  • 15,899
  • 15
  • 79
  • 112
1
vote
1 answer

Having trouble getting Rebol3 to run on Linux-ARMhf

I've been able to get this to work before, because I have an identical system with it running. I can't find what I'm missing. I've changed permissions and checked for existence of libraries referenced via ldd, but get the following: $ ls -l ...…
Respectech
  • 454
  • 4
  • 13
1
vote
1 answer

How to extend object with multiple functions in one call?

In Rebol 3 you can dynamically add keys and values to objects with append: >> foo: object [x: 10] >> append foo [y: 20 z: 30] == make object! [ x: 10 y: 20 z: 30 ] But if you try that with functions, it doesn't seem to work: >> foo:…
1
vote
2 answers

How do I force module reload?

The title says it all. When developing a module, how do I force reload, to test new code? I can switch from module to script and introduce binding problems and namespace conflicts, or I can change the version every time I fix a typo. Both are bad…
rebolek
  • 1,281
  • 7
  • 16
1
vote
1 answer

How do you start a Rebol3 GUI script without the console showing?

Currently I start a GUI from the console which involves first loading the GUI with load-gui and then run the script which shows the GUI. How can I start the GUI without a console showing?
HappySpoon
  • 233
  • 2
  • 8
1
vote
1 answer

Rebol 3 extension and "handles"

In writing a C extension for Rebol3, I need to pass to Rebol a pointer to an object I got from a native function. The documentation says that there is a special datatype: "handle: A way to store code and data pointers". But I would like an…
giuliolunati
  • 766
  • 5
  • 14
1
vote
1 answer

How do you set initial focus in a layout?

rebol [] view [ f: field "" button "focus" on-action [ focus f ] when [load] on-action [focus f] ] Using the focus button sets the focus correctly but I'd like the focus to set when the panel appears. I'd have thought…
Graham Chiu
  • 4,856
  • 1
  • 23
  • 41
1
vote
2 answers

What is causing a "word not bound to context" error in this script?

I have the following R3-GUI script: Rebol [ file: %context.reb ] either exists? %r3-gui.r3 [do %r3-gui.r3][load-gui] view [ title "First Window" hgroup [ lab: label "fld 1 " fld1: field "Field Data 1" ] button…
Graham Chiu
  • 4,856
  • 1
  • 23
  • 41
1
vote
2 answers

How to SET a variable to the result of a rule matching multiple elements in Rebol PARSE?

Imagine a simple example, where we want to turn the string "0-5" into "012345". This works: >> parse "0-5" [ set a char! "-" set b char! ( while [a <= b] [ prin a a: a + 1 ] ) ] The…