Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 plugin that sends visually selected source code to the REPL.

I have read on another StackOverflow question that REBOL2 supports multi-line statements, while REBOL3 does not. Has anyone provided a fix for this, or is there a fork with a multi-line support in the REPL?

like image 444
Friendly Genius Avatar asked Apr 23 '15 02:04

Friendly Genius


1 Answers

Unfortunately Rebol 3 Console doesn't support multi line statements.

I usually write my statements into a text editor, copy them to clipboard and then do in Rebol3 console:

do to string! read clipboard://

Better put that into a function:

do-clip: does [do to string! read clipboard://]
like image 128
endo64 Avatar answered Sep 22 '22 01:09

endo64