title: How does code written in one language get called from another language
body: <p>This is a question that I've always wanted to know the answer, but never really asked.</p>
  <p>How does code written by one language, particularly an interpreted language, get called by code written by a compiled language.</p>
  <p>For example, say I'm writing a game in C++ and I outsource some of the AI behavior to be written in Scheme. How does the code written in Scheme get to a point that is usable by the compiled C++ code? How is it used by the C++ source code, and how is it used by the C++ compiled code? Is there a difference in the way it's used?</p>
  <h3>Related</h3>
  <blockquote>
  <p><a href="https://stackoverflow.com/questions/636841/how-do-multiple-languages-interact-in-one-project/636851">How do multiple-languages interact in one project?</a></p>
  </blockquote>