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
4
votes
2 answers

Why does "save %test.png make image! [1024x768]" causes a Seg Fault?

I am using Rebol3 (Version: 2.101.0.4.20) on my RaspberryPi and each time I try to save an image to the filesystem it crashes with a Seg Fault: save %test.png make image! [1024x768] Can someone explain why? Any hints to solve this?
TGD
  • 175
  • 1
  • 5
4
votes
1 answer

Rebol 3 - How do I submit a username and password through https?

I'm trying to access the feed from my google account and I do not know how to send the user and password: >> read https://mail.google.com/mail/feed/atom ** Access error: protocol error: "Authentication not supported yet" >> read…
kealist
  • 1,669
  • 12
  • 26
4
votes
1 answer

Why are the 'context' and 'object' functions in Rebol different, but essentially the same?

On the one hand we have: >> source object object: make function! [[ "Defines a unique object." blk [block!] "Object words and values." ][ make object! append blk none ]] For context we see: >> source context context: make function! [[ …
Adrian
  • 741
  • 4
  • 14
4
votes
1 answer

Difference between Rebol 2 and Rebol 3 when mixing SOME in parse with CHANGE

Imagine a simplified example of a block of blocks containing words: samples: [ [a a c a] [a a c b] [b a c a] [c a c b] [c c c c] ] Each block needs to be [c c c c]. So if a value is 'a, it is changed to 'b. If a value is 'b,…
3
votes
2 answers

Breaking out of a recursive function

I'm walking through a set of nested blocks and want to stop the walk when I've found the value I'm looking for. For reasons that are beyond the scope of this question, I can't use PARSE for this particular problem, nor use FOREACH as the…
rgchris
  • 3,698
  • 19
  • 19
3
votes
1 answer

How to use words from a named module inside another?

I'm looking for an example of how to use words exported from a named module inside another module. From the help of import REFINEMENTS: /version ver [tuple!] Module must be this version or greater /check sum [binary!] Match checksum (must be…
Graham Chiu
  • 4,856
  • 1
  • 23
  • 41
3
votes
2 answers

What is the number of native! in Rebol3

How do I calculate the number native functions in Rebol3? (help native! prints native functions in lib but it does not return a block of words.) UPDATE: I have corrected the question after the error highlighted by @HostileFork.
noein
  • 411
  • 2
  • 10
3
votes
2 answers

Reading serial port in Rebol3

I am using Rebol3 v3.0.99.4.20 that has both the /View and serial functionality. I am opening a port with: ser: open serial://ttyUSB0/9600 Then, I set up my asynchronous handler: ser/awake: func [event /local p][ p: event/port switch…
Respectech
  • 454
  • 4
  • 13
3
votes
4 answers

Match self-define token in PARSE

I am working on a string-transforming problem. The requirement is like this: line: {INSERT INTO `pub_company` VALUES ('1', '0', 'ABC大学', 'B', 'admin', '2014-10-09 11:40:44', '', '105210', null)} ==> line: {INSERT INTO `pub_company` VALUES ('1',…
Wayne Cui
  • 835
  • 7
  • 15
3
votes
1 answer

Rebol Quickstart

I've been meaning to try out rebol (or red). I think it might be the perfect fit for my next project. I've downloaded and tested out red 0.5.4, and REBOL/View 2.7(http://www.rebol.com/download-view.html) However, there are a couple of roadblocks for…
Geeky I
  • 751
  • 6
  • 22
3
votes
1 answer

Making use of an object's fields implicit in a block of code

Let's say I have: foo: object [bar: 10] print foo/bar ;-- output 10 Is there some xxx for saying: foo: object [bar: 10] xxx foo [ print bar ;-- output 10 ] Binding will work, but is ugly (puts object reference after the block) and you…
3
votes
1 answer

How do I pass a URL a cookie using Rebol 3 and get the response cookies?

This stackoverflow question - How do I pass a URL a cookie using Rebol 3? - almost answers my question, but I am not sure how to capture the cookies from the response. What I would like to do is call to a URL passing in cookies (and headers) and to…
johnk
  • 1,102
  • 7
  • 12
3
votes
1 answer

unique for a block doesn't remove duplicates

The strings are part of urls of which I stripped out the base. parse detects four urls in some html file. I've narrowed down the problem to this: REBOL [] images:…
Luis
  • 1,236
  • 5
  • 22
  • 31
3
votes
1 answer

load a map of hash - object key pair

Please consider this example where I save a map! to a file and want to load it back and access its keys and values. Its keys are hashes (INTEGER!, calculated by checksum) and its values are blocks: Rebol [] bl1: make object! [ name:…
Luis
  • 1,236
  • 5
  • 22
  • 31
3
votes
1 answer

Access word value inside object

In the interpreter: >> qurl: "1234" == "1234" >> R: make object! [probe qurl qq: qurl probe qq] "1234" "1234" == make object! [ qq: "1234" ] This behaves like I'd expect. All "variables" or "words" are global by default. Using a…
Luis
  • 1,236
  • 5
  • 22
  • 31