partial rollback, might still not work

This commit is contained in:
Nathan Braswell
2016-06-16 09:53:15 -07:00
parent 4de7dd1210
commit 3f89cb1e37
7 changed files with 68 additions and 20 deletions

View File

@@ -4,9 +4,9 @@ import mem
import serialize
import io
fun to_string(in: bool): string
if (in) return string("true")
else return string("false")
/*fun to_string(in: bool): string*/
/*if (in) return string("true")*/
/*else return string("false")*/
fun to_string(in: uchar): string
return to_string_num(in)
fun to_string(in: short): string
@@ -171,7 +171,7 @@ obj string (Object, Serializable) {
}
fun operator+(integer: int): string return *this + to_string(integer);
fun operator+(b: bool): string return *this + to_string(b);
/*fun operator+(b: bool): string return *this + to_string(b);*/
fun operator+(str: *char): string {
var newStr.construct(str):string
@@ -185,7 +185,7 @@ obj string (Object, Serializable) {
}
fun operator+=(integer: int) *this += to_string(integer);
fun operator+=(b: bool) *this += to_string(b);
/*fun operator+=(b: bool) *this += to_string(b);*/
fun operator+=(character: char): void {
data += character