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

Issue 13015 - std.json.JSONValue's toString is now const #2292

Merged
merged 1 commit into from Jul 5, 2014
Merged

Issue 13015 - std.json.JSONValue's toString is now const #2292

merged 1 commit into from Jul 5, 2014

Conversation

markisaa
Copy link
Contributor

@markisaa markisaa commented Jul 1, 2014

{
return toJSON(&this);
}

/// Implicitly calls $(D toJSON) on this JSONValue, like $(D toString), but
/// also passes $(I true) as $(I pretty) argument.
string toPrettyString()
string toPrettyString() const
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though it calls the same toJSON function ATM it would be nice to at least call it in the unittest below.

@DmitryOlshansky
Copy link
Member

Otherwise LGTM

@markisaa
Copy link
Contributor Author

markisaa commented Jul 5, 2014

@DmitryOlshansky - Added test.

@DmitryOlshansky
Copy link
Member

Auto-merge toggled on

DmitryOlshansky added a commit that referenced this pull request Jul 5, 2014
Issue 13015 - std.json.JSONValue's toString is now const
@DmitryOlshansky DmitryOlshansky merged commit d97dc15 into dlang:master Jul 5, 2014
@markisaa markisaa deleted the constToString branch July 6, 2014 07:09
9rnsr pushed a commit to 9rnsr/phobos that referenced this pull request Jul 7, 2014
Issue 13015 - std.json.JSONValue's toString is now const
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants