title: Scripting language for C++
body: <p>I'm getting a little rusty in scripting languages, provided they're popping like mushrooms lately :)</p>
  
  <p>Today I thought that it would be nice to have a scripting language that talks seamlessly to C++, that is, could use C++ classes, and, the most important for me, could be compiled into C++ or some DLL/.SO (plus its .h) so that I could link it into my C++ program and make use of the classes the script defines or implements.</p>
  
  <p>I know I could embed any popular scripting language such as lua, ruby, python... but the interface usually includes some kind of "eval" function that evaluates the provided scripting code. Depending on the tool used to couple C++ and the scripting language, the integration for callbacks of the script into C++ could be more or less easy to write, but I haven't seen any scripting language that actually allows me to write independent modules that are exposed as a .h and .so/dll to my program (maybe along the lines of a scripting language that generates C++ code).</p>
  
  <p>Do you know any such tool/scripting language?</p>
  
  <p>Thanks in advance.</p>
  
  <p>PD. I've been thinking along the lines of <a href="http://live.gnome.org/Vala" rel="noreferrer">Vala</a> or Haskell's GHC. They generate C, but not C++...</p>