Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What happens if I insert (or do not insert) a semicolon (;) at the end of an interactive command line?

0
Posted

What happens if I insert (or do not insert) a semicolon (;) at the end of an interactive command line?

0

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.

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123