What happens if I insert (or do not insert) a semicolon (;) at the end of an interactive command line?
When using ROOT interactively, some of the common rules for C++ have been modified for this interactive environment. Semicolons (;) are not required at the end of command lines when using ROOT interactively. If you do not include the semicolon, then the return value of the command will be printed to the command window. If you do include the semicolon (;), then the return value is not printed to the command window. Here is an example: root [3] TTree *t = (TTree*)f.Get(“PDR/t1”) root [4] t->GetEntries() (const Stat_t)3.
When using ROOT interactively, some of the common rules for C++ have been modified for this interactive environment. Semicolons (;) are not required at the end of command lines when using ROOT interactively. If you do not include the semicolon, then the return value of the command will be printed to the command window. If you do include the semicolon (;), then the return value is not printed to the command window.
Related Questions
- I compiled and installed Music Applet, but when I run it from the command line, nothing happens. Whats wrong?
- I compiled and installed Music Applet, but when I run it from the command line, nothing happens. Whats wrong?
- What happens if I insert (or do not insert) a semicolon (;) at the end of an interactive command line?
- What happens if the set port qos trust command is not supported by my line card?
- What happens if the set port qos trust command is not supported by my line card?
- What happens when the upgrade tool is executed from the command line?