rebol Questions

2

Solved

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-w...
Lynelllynelle asked 25/7, 2014 at 0:28

1

Solved

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 susp...
Sophi asked 30/6, 2014 at 10:44

4

Solved

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 ob...
Cephalochordate asked 7/10, 2013 at 15:56

3

Solved

I've noticed that REBOL doesn't have a built in if...elsif...else syntax, like this one: theVar: 60 {This won't work} if theVar > 60 [ print "Greater than 60!" ] elsif theVar == 3 [ print "I...
Statuary asked 26/4, 2014 at 5:57

1

I've copied Rebol3 to my computer under windows. I am running it from the download not a full install, and it and seemed ok. I tried using some very simple sample code for the GUI in the console a...
Popsicle asked 7/4, 2014 at 16:11

4

Solved

I'm trying to create a dispatcher of functions in Rebol 3, so that for each string the program receives there's an associated function to be called. For example: handlers: make map! [ "foo" foo-...
Mirepoix asked 25/3, 2014 at 13:15

1

Solved

I come from a functional programming background and think first about recursive solutions to problems rather than iterative ones. I'm starting to work with Rebol a bit (specifically R3) and have wr...
Fiche asked 5/3, 2014 at 3:22

2

Solved

I am trying to compare characters to see if they match. I can't figure out why it doesn't work. I'm expecting true on the output, but I'm getting false. character: "a" word: "aardvark" (first wor...
Pottle asked 31/1, 2014 at 23:15

1

What is the simplest way of sending HTTP POST requests and getting response (in XML format for example) using only Rebol3? Is there an equivalent of using read/custom in Rebol2, as it is done in t...
Clematis asked 4/10, 2013 at 13:44

9

Given a string string, what is the fastest/most-efficient way to count lines therein? Will accept best answers for any flavour of Rebol. I've been working under the assumption that the parse [some ...
Eames asked 8/2, 2013 at 5:2

3

Solved

I am converting some python code to rebol, and I just came across a "continue" instruction. It interrupts the processing of a loop, going to the next iteration of the loop. I find this word quite ...
Sampler asked 7/9, 2013 at 13:36

3

Solved

I'm creating a dynamic variable ("Variable variable" in PHP parlance) with the following: foo: "test1" set to-word (rejoin [foo "_result_data"]) array 5 But how do I get the value of the resulti...
Sixgun asked 23/8, 2013 at 3:8

2

Solved

The purpose of the function below is to return a string having inserted the argument value between two stars. star-name: func [name /local stars] [ stars: "**" insert next stars name stars ] pr...
Scar asked 9/8, 2013 at 7:7

2

Solved

I'm new to Rebol, and am working with a small corporate-based group to evaluate it for use in some areas that time and again have proven themselves highly resistant to change and to concepts such a...
Headwards asked 17/7, 2013 at 20:17

1

Solved

There are plenty of nice little web-servers written in Rebol 2, but Rebol 3 has a different networking model, and I'm looking for a web-server that works with that. I'm not looking for anything fa...
Venetis asked 7/7, 2013 at 22:17

2

Solved

PEG-based parser generators usually provide limited error reporting on invalid inputs. From what I read, the parse dialect of rebol is inspired by PEG grammars extended with regular expressions. F...
Saltine asked 4/7, 2013 at 19:36

2

Solved

I haven't figure out how to split a string in a cleaner way. ref: copy/part (find line "#") -15 rest2: copy/part (skip (find line "#") 1) 450 -15 is for going to the beginning and 450 to go t...
Mab asked 25/4, 2013 at 10:31

1

Solved

Do any of the REBOL 3 gurus here know why the modified?, exists? and size? functions fail on R3 when targeting a URL? These functions work fine on local files. I am very familiar with R2, but R3 ...
Pitchblack asked 13/6, 2013 at 10:53

4

Solved

I am trying to save a few string values into a block so that I can save that block to a text file. I am getting these values from a form using VID. One way to do this would be to simply save strin...
Position asked 14/2, 2013 at 18:25

6

Solved

I want to convert a block from block: [ a: 1 b: 2 ] to [a 1 b 2]. Is there an easier way of than this? map-each word block [ either set-word? word [ to-word word ] [ word ] ]
Veator asked 10/5, 2013 at 5:34

2

Solved

I know you can't use caret style escaping in strings for codepoints bigger than ^(FF) in Rebol 2, because it doesn't know anything about Unicode. So this doesn't generate anything good, it looks me...
Gsuit asked 25/2, 2013 at 22:44

1

I am working on some extensions for Rebol 3 (posix/fann/math). To avoid global namespace pollution, I am exporting the functions with a simple prefix source identifier. For example: POSIX-FORK for...
Chantey asked 2/4, 2013 at 19:46

2

Solved

This code returns -1 for R3 and +1 for R2. I'd like to know what I am doing wrong. f: func [] [ also return 1 return -1 ] f
Peroration asked 21/2, 2013 at 22:44

4

Solved

I wrote a JSON encoder/decoder for Rebol 2. I'm rewriting it for Rebol 3 and would prefer to make it available in Rebol 3 as a codec: load %data.json save %data.json object decode 'json to-binary ...
Aloisius asked 16/1, 2013 at 18:17

1

Solved

I saw someone mention the reword function today, but documentation for it is very brief. It looks like shell script environment variable substitution, or maybe regex substitution, but different. Ho...

© 2022 - 2024 — McMap. All rights reserved.