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

How can I show the cents with R3 money?

The online documentation promises this probe to-money 123 $123.00 http://www.rebol.com/r3/docs/datatypes/money.html I get this probe to-money 123 $123
Jina.
  • 105
  • 6
3
votes
3 answers

How to handle timeout periods in Rebol 3 schemes

A common way to initiate the async IO event system in Rebol 3 is to wait on the port. To check for a timeout, a value from the scheme is added to the wait block. wait [port timeout] But a default timeout for a small email message may not be…
Graham Chiu
  • 4,856
  • 1
  • 23
  • 41
2
votes
3 answers

How do I invoke an object function using its string name

Any idea why the following doesn't work? (R3) o: make object! [ foo: does [do "bar"] bar: does [print "hello from bar"] ] o/foo ** Script error: bar has no value ** Where: catch either -apply- do foo ** Near: catch/quit either var [[do/next…
Sunder
  • 1,445
  • 2
  • 12
  • 22
2
votes
2 answers

Passing quoted arguments to a REBOL 3 script

I've found it almost impossible to pass quoted arguments (containing spaces) to REBOL 3 scripts. For example: rebol -q script.r "foo bar" 40 If you examine system/script/args, it contains the string "foo bar 40". This is useless! Information was…
Gregory Higley
  • 15,923
  • 9
  • 67
  • 96
2
votes
1 answer

How to read key from keyboad in red/rebol

We can get input from console by input or ask, which means to press some keys on keyboard and terminate the input by pressing the key "Enter". I'd like to know if there is a way to get a key input, that is to say, just press a key on keyboard and…
lyl
  • 293
  • 1
  • 8
2
votes
0 answers

Trouble with 'export word in module

Let's mod.reb: REBOL[Type: module Name: mod] export: add 1 2 Let's test.reb: import 'mod Running r3 test.reb, got: ** Script error: add has no value ** Where: do module catch case load-module apply for-each case import do…
giuliolunati
  • 766
  • 5
  • 14
2
votes
1 answer

How to create Windows executable (.exe) from red lang?

I'm building a red lang application. How to create Windows executable (.exe) from red lang???
金馆长
  • 217
  • 2
  • 7
2
votes
2 answers

How do you build Rebol's "Ren-C" branch with LibFFI support?

I'd like to access a dynamic library using FFI features in the Ren-C Rebol branch. I understand this is possible by building with LibFFI support enabled. What steps do I need to take to enable this? I mainly use OS X for development, though would…
rgchris
  • 3,698
  • 19
  • 19
2
votes
1 answer

What's difference between built-in FUNCTION and the FUNCS add-on?

There is a new implementation of FUNCTION in Rebol 3, which allows making variables automatically bound to local context by default. FUNCTION seems to have a problem with the VALUE? test, as it returns TRUE even if a variable has not been set at…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
2
votes
2 answers

Rebol GUI on Android Displays Too Small

So I've discovered Rebol, and am thrilled that it runs on Android. When I create a GUI, though, the GUI first pops up with the top left corner in the center of the screen, and I cannot move or resize the window. If I rotate my phone to a horizontal…
Jeff Maner
  • 1,179
  • 9
  • 23
2
votes
2 answers

Create JSON array using altjson library

I am using this JSON library for Rebol http://ross-gill.com/page/JSON_and_REBOL and I am struggling to find the correct syntax to create JSON arrays. I tried this: >> to-json [ labels: [ [ label: "one" ] [ label: "two" ] ] ] == {{"labels":{}}} I…
johnk
  • 1,102
  • 7
  • 12
2
votes
1 answer

Can strings be 'late bound' as if they were words in the same positions?

When you LOAD a string, it biases to the user context by default: >> f: 3 >> outside: object [ f: 4 getter: does [ print reduce compose [(load "f")] ] ] >> outside/getter 3 This turns out to be an artifact of LOAD's…
2
votes
1 answer

Return only object words but not functions defined with colon as the suffix

When an object! is created as below: REBOL [] Room: make object! [ price: copy "" area: copy "" total: func [] [ price * 2 ] set 'total2 func [] [ price * 3 ] ] The result of probe Room is: make object!…
Luis
  • 1,236
  • 5
  • 22
  • 31
2
votes
1 answer

view error Rebol 3

I'm trying to add a gui to my program but have difficulties doing so. >> system/version == 3.0.0.4.40 Downloaded from http://atronixengineering.com/downloads.html First, where can I find examples and documentation for the guie of my interpreter…
Luis
  • 1,236
  • 5
  • 22
  • 31
2
votes
2 answers

Add to map inside of parse dialect

I want to create a map where a hash is associated to a url in order to check if some url is or is not in the map. If it's not yet in the map, add it (and the url) to it. parseContainer: func [cstr [string!]] [ parse cstr [ thru "
Luis
  • 1,236
  • 5
  • 22
  • 31