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

Revert "Modify std.conv.octal to be usable at runtime" #3375

Merged
merged 1 commit into from Jun 8, 2015

Conversation

schveiguy
Copy link
Member

Reverts #3343

I forgot that to and parse already do this:

auto x = parse!int(octalString, 8)

having 2 ways to do this, within the same module no less, is unnecessary. I'm wondering actually whether octal (the one that uses the literal at compile time) could actually simply forward to parse instead of having its own special mechanism.

@schveiguy
Copy link
Member Author

Note: parse/to does not handle underscores, but I think we can probably update it to handle them.

@schveiguy
Copy link
Member Author

I'm going to pull this, because I pulled the original PR, and because there is already another PR to allow the underscores.

@schveiguy
Copy link
Member Author

Auto-merge toggled on

schveiguy added a commit that referenced this pull request Jun 8, 2015
…ime-octal-conv

Revert "Modify std.conv.octal to be usable at runtime"
@schveiguy schveiguy merged commit f941997 into master Jun 8, 2015
@schveiguy schveiguy deleted the revert-3343-runtime-octal-conv branch June 8, 2015 13:01
JesseKPhillips added a commit to JesseKPhillips/phobos that referenced this pull request Jun 9, 2015
This is in response to the reverting found in pull dlang#3375.

This removes a mention of being experimental and possible future deprecation of a no longer valid 0 prefix.

It also mentions parse for runtime parsing of octal strings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant