Init globals before lowering CTCE, allows CTCE to use imported functions, etc.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user