Skip to content

Issue 4744: std.conv: string->enum doesn't look for longer match #557

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

Merged
merged 1 commit into from
May 8, 2012
Merged

Issue 4744: std.conv: string->enum doesn't look for longer match #557

merged 1 commit into from
May 8, 2012

Conversation

Chabsf
Copy link

@Chabsf Chabsf commented Apr 30, 2012

parse now loops over every member of the enum and returns the longest match (instead of the first one).

http://d.puremagic.com/issues/show_bug.cgi?id=4744

I think that's the right way to propose a fix. Apologies if it's not the right channel.

andralex added a commit that referenced this pull request May 8, 2012
Issue 4744:  std.conv: string->enum doesn't look for longer match
@andralex andralex merged commit 36f5539 into dlang:master May 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants