Fix character value handling. String stuff appears to work correctly in bytecode now

This commit is contained in:
Nathan Braswell
2018-03-22 00:51:57 -04:00
parent c056af6e56
commit b8213dfc9f
4 changed files with 12 additions and 2 deletions

View File

@@ -191,6 +191,11 @@ obj string (Object, Serializable, Hashable) {
return *this == str
}
fun operator+(c: char): string {
var to_ret = *this
to_ret += c
return to_ret
}
fun operator+(integer: int): string return *this + to_string(integer);
fun operator+(integer: long): string return *this + to_string(integer);
fun operator+(integer: ulong): string return *this + to_string(integer);