http://root.cern.ch/drupal/content/cint
(also root, of course)
http://root.cern.ch/drupal/content/cint
(also root, of course)
As a REPL CINT actually works surprisingly well. Unfortunately it seems to have some problems interpreting certain "advanced" C++ stuff, such as templates and especially code that uses STL heavily. Another problem with it is that since you still need to manage memory manually and have direct access to pointers it's very easy to make CINT (or ROOT) session crash... :(
Btw, the ROOT developers are also working on a new LLVM based C++ interpreter called Cling: http://root.cern.ch/drupal/category/package-context/cling
Here's an excerpt from my most recent cint repl session:
cint> {long x = 84bfaad645e2e33f; double * p = &x;}
Warning: Illegal numerical expression 84bfaad645e2e33f FILE:(tmpfile) LINE:1
cint> {long x = 0x84bfaad645e2e33f; double * p = &x;}
cint> p p
(double*)0x100809480
cint> p *p
(double)(-8.31870270613823687e-286)Also you lose certain features that are available to the interpretter - but that's okay - that was the point...