6

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?

Friendly Genius
  • 305
  • 3
  • 12
  • 1
    Mainline Rebol3 is not scheduled for good multi-line input, but Red supports it today. However... the future may not be so grim... see [Ren Garden](https://youtu.be/0exDvv5WEv4?t=803) for "more than just multi-line" :-) – HostileFork says dont trust SE Apr 23 '15 at 02:54
  • Note: I upvoted you to try and help you [get enough points to chat](http://rebolsource.net/go/chat-faq) where you can have this and your other questions about "what's going on?" answered. However I'm also voting to close. Project roadmap questions aren't "good SO questions". *(SO kind of puts us [between a rock and a hard place on that](http://meta.stackoverflow.com/questions/257949/room-owners-should-be-allowed-to-accept-20-rep-users-to-talk-in-a-room).)* – HostileFork says dont trust SE Apr 23 '15 at 03:12
  • @HostileFork Well thanks for the points :), I've been trying to get enough points to ask questions on the chat. – Friendly Genius Apr 23 '15 at 14:58
  • Looks like you got your bump. First time's free. :-) Come join... – HostileFork says dont trust SE Apr 23 '15 at 19:40

1 Answers1

1

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://]
endo64
  • 2,269
  • 2
  • 27
  • 34
  • Yeah...hm but I'm working on a remote VM, so clipboard is not readily accessible to me. I'm thinking about modifying Vim SLIME to do something like what you suggested. – Friendly Genius Apr 24 '15 at 02:02