root-project / cling

The cling C++ interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support bracketed paste

Freed-Wu opened this issue · comments

commented

See https://en.wikipedia.org/wiki/Bracketed-paste.

Now cling doesn't support it.

[cling]$ 200~#include <stdarg.h>201~
input_line_3:2:5: error: expected ';' after expression
 200~#include <stdarg.h>201~
    ^
    ;
input_line_3:2:6: error: expected expression
 200~#include <stdarg.h>201~
     ^

Is there a way to declare a multiline statement?

Is there a way to declare a multiline statement?

Did you try like in C++, using a \ + enter ?

I haven't. I've only used cling a couple times to do bit manipulation stuff since then. I wanted to use it as a dev repl when I first found out about it but I couldn't get it working well enough.