Multiline statements in REBOL?

The annoying problem that I encountered with REBOL3 REPL is that it will not accept multi-line statements. For example, I would like to type "some_obj: make obj! [", Press enter, and then continue with the statement.

This is relevant to me as I use the Vim plugin that sends the visually selected source code to the REPL.

I read another question from StackOverflow that REBOL2 supports multi-line operators, but REBOL3 does not. Has anyone provided a fix for this, or is there a multi-line fork in REPL?

+6
source share
1 answer

Unfortunately, the Rebol 3 console does not support multi-line operators.

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

do to string! read clipboard:// 

Better put this in a function:

 do-clip: does [do to string! read clipboard://] 
+1
source

Source: https://habr.com/ru/post/985738/


All Articles