We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
#include <iostream> using namespace std; for (int i = 0; i < 10; ++i) { cout << "hello" << endl; }
when pasted to cling does not work:
[cling]$ #include <utility> [cling]$ #include <iostream> [cling]$ using namespace std; for (int i = 0; i < 10; ++i) { cout << "hello" << endl; } [cling]$ for (int i = 0; i < 10; ++i) { cout << "hello" << endl; } [cling]$ { [cling]$ ? cout << "hello" << endl; } [cling]$ ? } hello
Is there an already existing solution to this?
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: