-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add generic DisplayString function #5163
base: master
Are you sure you want to change the base?
Add generic DisplayString function #5163
Conversation
You write that this "fixes" (should perhaps be: "resolves" ?) issue #5144, but as far as I can tell, it only addresses part of it? |
od; | ||
Append(outputstring,"]"); | ||
Append(outputstring, ">\n"); | ||
return outputstring; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a test case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be done. Which file would you prefer?
How should we deal with numbers of different length, i.e.
|
While I realise this would require significantly changing how your code is structured, one way to fix the "numbers of different length" would be to first make a 2d array of strings representing what you are going to print, then finding the maximum length of a string in that 2d array, and finally printing. Nicely formatting is going to require going over the matrix twice whatever you do (first time to get length, second time to output). |
You could also take a look |
Thanks a lot! The PrintArray code inspired me to write this new version. 😁 |
Just checking, what's the state of this PR, does it want reviewing? I don't mind if you are still working on it, just didn't want it to get ignored. |
Start of PR which Resolves #5144
Text for release notes
none