Init globals before lowering CTCE, allows CTCE to use imported functions, etc.

This commit is contained in:
Nathan Braswell
2016-07-06 00:16:39 -07:00
parent cd21e7a1cc
commit f71b5f3576
9 changed files with 86 additions and 14 deletions

View File

@@ -180,6 +180,7 @@ obj string (Object, Serializable) {
}
fun operator+(integer: int): string return *this + to_string(integer);
fun operator+(integer: ulong): string return *this + to_string(integer);
/*fun operator+(b: bool): string return *this + to_string(b);*/
fun operator+(str: *char): string {
@@ -194,6 +195,7 @@ obj string (Object, Serializable) {
}
fun operator+=(integer: int) *this += to_string(integer);
fun operator+=(integer: ulong) *this += to_string(integer);
/*fun operator+=(b: bool) *this += to_string(b);*/
fun operator+=(character: char): void {