Friendly Genius
Friendly Genius

Reputation: 335

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?

Upvotes: 6

Views: 139

Answers (1)

endo64
endo64

Reputation: 2307

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://]

Upvotes: 1

Related Questions