Skip to content
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

Support calling ToString on an arbitrary value #450

Open
robin-aws opened this issue Dec 3, 2019 · 0 comments
Open

Support calling ToString on an arbitrary value #450

robin-aws opened this issue Dec 3, 2019 · 0 comments
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: language definition Relating to the Dafny language definition itself

Comments

@robin-aws
Copy link
Member

This functionality is already indirectly exposed through the print statement, which is documented as using "the System.Object.ToString() method to convert the values to printable strings" (

list of expressions to the console. The generated C# code uses
the `System.Object.ToString()` method to convert the values to printable
strings. The expressions may of course include strings that are used
).

It would be useful to be able to call this with a similar built-in function that returns a string, for building strings from values without necessarily printing them to the console.

@davidcok davidcok added the kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny label Jun 20, 2020
@acioc acioc added this to the Post 3.0 milestone Aug 20, 2020
@keyboardDrummer keyboardDrummer added the part: language definition Relating to the Dafny language definition itself label Jul 20, 2021
@robin-aws robin-aws removed this from the Post 3.1 milestone Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: language definition Relating to the Dafny language definition itself
Projects
None yet
Development

No branches or pull requests

4 participants