Added missing right brace to toString string and refectored string generation.

This commit is contained in:
Tristan B. Kildaire 2020-06-23 15:11:31 +02:00
parent e7c99ebf5e
commit e5eb241502
3 changed files with 15 additions and 3 deletions

View File

@ -2,6 +2,6 @@
"fileVersion": 1,
"versions": {
"bformat": "1.0.8",
"tristanable": "0.0.22"
"tristanable": "0.0.23"
}
}

View File

@ -2,6 +2,6 @@
"fileVersion": 1,
"versions": {
"bformat": "1.0.8",
"tristanable": "0.0.22"
"tristanable": "0.0.23"
}
}

View File

@ -50,6 +50,18 @@ public final class Request
override public string toString()
{
return "Request (Tag: " ~ to!(string)(tag) ~ ", Arrived: " ~ to!(string)(fulfilled) ~ ", Used: " ~ to!(string)(isDead);
/* the toString string */
string toStringString;
/* Add the Request tag info */
toStringString ~= "Request (Tag: " ~ to!(string)(tag);
/* Add the Request arrival status */
toStringString ~= ", Arrived: " ~ to!(string)(fulfilled);
/* Add the IsDead tag info */
toStringString ~= ", Used: " ~ to!(string)(isDead) ~ ")";
return toStringString;
}
}