Questions tagged [rebol2]

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.

101 questions
10
votes
3 answers

String searching in Rebol or Red

I'm interested in searching on a lot of long strings, to try and hack out a sed-like utility in rebol as a learning exercise. As a baby step I decided to search for a character: >> STR: "abcdefghijklmopqrz" >> pos: index? find STR "z" == 18 >>…
gnat
  • 101
  • 1
  • 6
10
votes
1 answer

What is the summary of the differences in binding behaviour between Rebol 2 and 3?

The current in-depth documentation on variable binding targets Rebol 2. Could someone provide a summary of differences between Rebol 2 and 3?
Adrian
  • 741
  • 4
  • 14
8
votes
2 answers

|Red Programming Language| How to get Cookies from a Webpage?

I searched a lot on Google as well as Stackoverflow. I could not find How to get Cookies (or in general, The HTTP Headers)from a Webpage and then edit it and send it back? [I know how to make POST/GET requests using read/write but Cookies idk]
7
votes
2 answers

REBOL layout: How to create layout words automatically - word has no context?

Using the REBOL/View 2.7.8 Core, I would like to prepare a view layout beforehand by automatically assigning words to various layout items, as in the following example. Instead of prepared-view: [across cb1: check …
jjr_
  • 73
  • 2
7
votes
1 answer

Rebol 2 Stopped working after upgrading to Ubuntu 15.10

Rebol 2 stopped working on Ubuntu after upgrading to 15.10. I am getting error- ./rebol ./rebol: error while loading shared libraries: libXaw.so.7: cannot open shared object file: No such file or directory Tried to install libXaw- sudo apt-get…
Satish
  • 133
  • 8
7
votes
3 answers

Dynamically adding words to a context in REBOL

Imagine the following REBOL code: foo: context [bar: 3] I now have a context foo in which 'bar is defined. How can I dynamically inject a new word into this context? Is it possible? I've tried: set/any in foo 'baz 3 But that doesn't work because the…
Gregory Higley
  • 15,923
  • 9
  • 67
  • 96
7
votes
4 answers

is there an object constructor in rebol

I usually program by functions in an "instinctive" manner, but my current problem can be easily solved by objects, so I go ahead with this method. Doing so, I am trying to find a way to give an object a constructor method, the equivalent of init()…
Pierre
  • 530
  • 5
  • 13
6
votes
1 answer

How to remove the default title bar on rebol?

How to remove the default title bar on rebol?
金馆长
  • 217
  • 2
  • 7
6
votes
1 answer

Escape symbols in Rebol url

I am using Rebol 2.7.8.3.1. I am trying to escape an @ symbol in my url, but it is not working. I have also tried manually escaping it, but that does not work either. I have tried the following: read ftp://mydomain:12345/path/to/@folderA read…
senevoldsen
  • 337
  • 3
  • 8
6
votes
2 answers

Debug and avoid periodic REBOL2 error, that try[] does not(?) catch?

Apparently un-catchable error while toying around with Rebol/Core (278-3-1) to make a kind-of web-server to serve a static text, containing a redirect link to a new service location. The specific location of the error appear to be in example code…
fsteff
  • 543
  • 5
  • 19
6
votes
1 answer

multi-line statements in REBOL?

An annoying problem I'm having with the REBOL3 REPL is that it won't accept multi-line statements. For instance, I would like to type "some_obj: make obj! [" , hit enter, and then continue the statement. This is relevant for me as I am using a Vim…
Friendly Genius
  • 305
  • 3
  • 12
6
votes
3 answers

Why do function "have memory" in REBOL?

In rebol I have written this very simple function: make-password: func[Length] [ chars: "QWERTYUIOPASDFGHJKLZXCVBNM1234567890" password: "" loop Length [append password (pick chars random Length)] password ] When I run this…
Caridorc
  • 6,222
  • 2
  • 31
  • 46
6
votes
2 answers

Retrieving function arguments programmatically in Rebol

This works at the shell level: >> a: "hello" == "hello" >> get to-lit-word "a" == "hello" But within a function like this: f: func [ arg1 ] [ v1: get 'arg1 ? v1 v2: get to-lit-word "arg1" ? v2 ] >> f "goodbye" V1 is a string of…
dogeye
  • 177
  • 6
6
votes
1 answer

How to start the Rebol2 /View console on a server?

I want to run Rebol2 /View on an Ubuntu 14.04 server to be able to load a shared library (which apparently /Core cannot do). I have managed to install all the required dependencies, but now I suspect, by default, /View wants to open the Viewtop…
mydoghasworms
  • 18,233
  • 11
  • 61
  • 95
5
votes
1 answer

How read file real time for chat application?

I'm trying to write a simple chat application in Rebol which is based on a single text file. What would be the best way to read that file "real time"? Right now I've got it working with this: t1: text 600x300 wrap green black font-name…
lechuck
  • 51
  • 1
1
2 3 4 5 6 7