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

Pointers returned from dll function when called from rebol

I am trying to ascertain weather I can use rebol for a few programming tasks. I have written a small program which loads an external library and calls a function which returns pointers in some of the arguments. When I run the program it crashes…
user1897830
  • 443
  • 1
  • 3
  • 10
5
votes
3 answers

VID layout pane supporting multiple face creations [rebol2]

Please consider this simple rebol2 code to illustrate my problem: REBOL [] a: make face [ offset: 0x0 color: yellow size: 20x20 ] b: make face [ offset: 0x0 color: red size: 60x60 pane: reduce [ make a [offset:…
rdonatoiop
  • 1,185
  • 1
  • 14
  • 28
5
votes
1 answer

What causes a misplaced item error in rebol?

Here is the code pruned down to a minimum to show the error: Rebol [] view center-face layout [ fld1: field fld2: field flds: [fld1 fld2] ]
johnorork
  • 51
  • 5
5
votes
2 answers

What is the undocumented block you get from THIRD on object/function in Rebol2?

I've read internally R2 stores contexts as two tables, one for words and the other for values, so you can ask for them: o: context [a: 1 b: 2] >> first o == [self a b] >> second o == [make object! [ a: 1 b: 2 ] 1 2] in any…
Pep
  • 451
  • 2
  • 9
5
votes
1 answer

Are OBJECT and CONTEXT synonyms in Rebol2?

My first assumption is that object and context are synonyms. So I created an object o and a context c. Probing them reports the same code construct, and also type is the same (both being type object!): >> o: make object! [a: 1 b: 2] >> c: context…
Pep
  • 451
  • 2
  • 9
5
votes
2 answers

How to use Unicode codepoints above U+FFFF in Rebol 3 strings like in Rebol 2?

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 messed up: print {Q: What does a Zen master's {Cow}…
5
votes
4 answers

Save a value to a block instead of the word label that represents it

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 strings to the file. But I would prefer being able to…
KK.
  • 783
  • 8
  • 20
4
votes
3 answers

Parse string to find first duplicate character - functional vs. prodecural coding style

I want to parse a string to find the first N duplicate characters found in a (character, n) set. For example, for "ozzllluu" and sets ("u" => 2), ("d" => 2), ("l" => 3), and ("r" => 3)... I would want to find "lll", because it is 3 characters and…
OneArb
  • 453
  • 2
  • 14
4
votes
2 answers

What is the difference between `context` and `object`?

In Rebol 3, there are the functions object and context. What's the purpose of the difference? Note : for reference, in red, both are the same, and object doesn't exist in rebol 2 Context: no pun intended Initially, I was wondering why we had context…
Geeky I
  • 751
  • 6
  • 22
4
votes
2 answers

Rebol 2 disable console echo

I have a Rebol2 console app (Rebol Core) which I would like to disable the keyboard character echo to the console. The app is run from a minimal Linux kernel/initramfs, and is started by busybox inittab (not from terminal). It has a minimal console…
cv007
  • 51
  • 1
  • 5
4
votes
1 answer

How to run Rebol on Freya

Been trying to run rebol-view-278-4-2 on Elementary OS "Freya" (a variant of Ubuntu 14.04 LTS). I keep getting this error: error while loading shared libraries: libXaw.so.7: cannot open shared object file: No such file or directory I went ahead…
VMur
  • 103
  • 4
4
votes
2 answers

Read files from HTTP

I have written a program to download text files from National Stock Exchange. This is the downloading function: downloadNseBhav: func [Date] [ NSE_Url: to-url rejoin [ "http://nseindia.com/content/historical/EQUITIES/" …
Satish
  • 133
  • 8
4
votes
1 answer

Rebol 2 port binding to multiple IPs

I have a Windows setup with multiple IP's, and wishes my Rebol script (on Rebol/Core 2.78) to make individual bind and listen to the same port number on each of those IP's. Until very recently I thought the syntax to do this was: Port1Test:…
fsteff
  • 543
  • 5
  • 19
4
votes
1 answer

How to add addresses to the BCC field using Rebol's SEND function?

I'm trying to send an email using SEND in Rebol 2: send foo@bar.com "A Message" How do I BCC a second address? I've tried the following without success: send/header foo@bar.com "A Message" make system/standard/email [ BCC: baz@bar.com ] This…
rgchris
  • 3,698
  • 19
  • 19
4
votes
3 answers

Remove duplicate objects from series in Rebol

In R2 and R3, I can use unique to remove duplicate items from a series: >> a: [1 2 2 3] >> length? a == 4 >> length? unique a == 3 How can I perform the same operation on a series of objects? e.g., b: reduce [ make object! [a: 1] make…
James Irwin
  • 1,171
  • 8
  • 21