Open choucavalier opened 6 years ago
Multi-line commands work via
{
? #include <iostream>
? using namespace std;
? for (int i = 0; i < 10; ++i)
? {
? cout << "hello" << endl;
? }
}
So you could probably make a macro to do this?
See https://root.cern.ch/root/htmldoc/guides/users-guide/Cling.html
I like the workflow of
I can do this with ipython but I'm currently unable to reproduce this with cling for multi-line pastes.
When I paste some multi-line code to cling, each line is executed individually.
So, of course, the following c++ code
when pasted to cling does not work:
Is there an already existing solution to this?