title: Recommendations for returning const char * as a string value using chaiscript?
body: <p>Running into a very odd challenge with Chaiscript today, I'm sure it's lack of understanding but I haven't been able to resolve it yet. Hoped lefticus or others could shed some light on it.</p>
  
  <p>When my C++ class returns a "const char *" calling that method results in the first character of the string only.</p>
  
  <p>"teststring" would return "t", etc.</p>
  
  <pre><code>class Item{
       const char *getName();
  };
  chai.add(chaiscript::fun(&amp;Item::getName), "getName");
  
  ...
  
  chai.eval("var i = Item(); print(i.getName());");
  
  ...
  
  "t"
  </code></pre>
  
  <p>Is there a way to tell ChaiScript the return type of my method better so that it will treat it like a char *? Perhaps that's just not supported and I need to re-write those methods to use std::strings.. Any recommendations would be great.</p>
  
  <p>Thanks!</p>