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

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

view layout rebol 3 not working

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 and it fails with various error messages. If I put in…
DNMurphy
  • 129
  • 1
  • 7
6
votes
1 answer

Rebol 3 functions MODIFIED? and EXISTS? don't work on URL type

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 behavior seems strange at times. I am using stock code…
kris_rg
  • 63
  • 3
6
votes
6 answers

How do I convert set-words in a block to words

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 ] ]
johnk
  • 1,102
  • 7
  • 12
6
votes
2 answers

Why does return/redo evaluate result functions in the calling context, but block results are not evaluated?

Last night I learned about the /redo option for when you return from a function. It lets you return another function, which is then invoked at the calling site and reinvokes the evaluator from the same position >> foo: func [a] [(print a)…
6
votes
1 answer

Why doesn't Rebol 3 honor quoted function parameters that are parenthesized?

The DO dialect uses series of category PAREN! for precedence, and will usually boil away the underlying parentheses structure prior to invoking a function. However, it used to be possible in Rebol 2 to specify in a function's definition that you…
6
votes
4 answers

How do you write a codec for Rebol 3?

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 {["some","json"]} How should I go about this? At the…
rgchris
  • 3,698
  • 19
  • 19
5
votes
2 answers

Rebol 3: reading STDIN efficiently line by line (to make awk like tool)

I am trying to make an awk like tool that uses Rebol 3 to process bigger text files with bash pipes and tools. I am having a problem reading STDIN line by line in Rebol 3? For example this shell command produces 3 lines: $ (echo "first line" ; echo…
middayc
  • 111
  • 8
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
5
votes
1 answer

Wrapping shared variables using Rebol 3 FFI

Atronix Rebol 3 FFI looks pretty good in wrapping external functions, but I cannot find any references about wrapping external variables using it. For example, Curses/NCurses library have the external variable stdscr defined in C as extern WINDOW…
Ivan Sukin
  • 85
  • 5
5
votes
1 answer

Rebol 3 What are the available border effects for r3gui?

I know how to adjust the size of the border within r3gui: view [ b: box 800x400 red options [ box-model: 'frame border-size: [4x2 2x4] ] ] But how can I make an ibevel border/edge effect known from R2/View with r3gui? Rebol2/View…
TGD
  • 175
  • 1
  • 5
5
votes
4 answers

How to express branch in Rebol PARSE dialect?

I have a mysql schema like below: data: { `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(10) DEFAULT '' COMMENT 'the name', `content` text COMMENT 'something', } now I want to extract some info from it: the filed name,…
Wayne Cui
  • 835
  • 7
  • 15
5
votes
1 answer

How do I pass a URL a cookie using Rebol 3?

Using R3, I need to get a localized version of a page from a website that uses cookies to handle this. In REBOL 2.x, I could do this: page: http://www.rci.com/resort-directory/resortDetails?resortCode=0450 read/custom page [header [Cookie:…
Edoc
  • 339
  • 4
  • 10
5
votes
3 answers

How to wrap up a function with a refinement so the refinement isn't required?

I am trying to wrap up functions with refinements in a generic way so they can be called without the refinement. For instance, ARRAY-INITIAL size value instead of ARRAY/INITIAL size value wrap: function [refined [path!] args [block!]] [ …
1
2
3
13 14