Fixed 'str' in Value.

pull/3/head
yhirose 9 years ago
parent fe88c34649
commit 5b9d6d8a57
  1. 4
      language/interpreter.hpp

@ -67,8 +67,8 @@ struct Value
case Bool: return to_bool() ? "true" : "false"; case Bool: return to_bool() ? "true" : "false";
case Long: return std::to_string(to_long()); break; case Long: return std::to_string(to_long()); break;
case String: return to_string(); case String: return to_string();
//case Function: return "[function]"; case Function: return "[function]";
//case Array: return "[array]"; case Array: return "[array]";
default: throw std::logic_error("invalid internal condition."); default: throw std::logic_error("invalid internal condition.");
} }
// NOTREACHED // NOTREACHED

Loading…
Cancel
Save