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

Improve std.conv.to (3) #122

Merged
merged 12 commits into from
Jul 13, 2011
Merged

Improve std.conv.to (3) #122

merged 12 commits into from
Jul 13, 2011

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Jun 25, 2011

This pull request is based on #119.

The readability of std.conv module document is not good.
I collected toImpl functions by its 'conversion kind'.

Generated html is here: (Sorry, can't preview directly.)
https://gist.github.com/2bb2b072945903ea9e74

@jmdavis
Copy link
Member

jmdavis commented Jun 26, 2011

Looks good.

@jmdavis
Copy link
Member

jmdavis commented Jun 26, 2011

Also, you've messed with std.conv enough at this point that you should probably put your name in the list of authors.

9rnsr added 12 commits July 7, 2011 08:18
…straint of S -> constraint of T) for code readability.
…ible

The two templates has same purpose, but bit different behaviors.
implicitlyConverts(S, T) has following semantics:
   is(S : T) and allow initializer conversion (T t = s; -> T t = T(s);)
   Including initializer conversion is inconvenience for my to!() improvement in after commits, so replace it.
1. Remove conversion feature using member template function to!T() of user type.
2-1. Support conversion feature using opCast!T() with aggregate types.
2-2. Support conversion feature using constructor like T(s) with struct types.
@9rnsr
Copy link
Contributor Author

9rnsr commented Jul 6, 2011

Rebase and add author.

jmdavis added a commit that referenced this pull request Jul 13, 2011
@jmdavis jmdavis merged commit abeb58b into dlang:master Jul 13, 2011
kuettler pushed a commit to kuettler/phobos that referenced this pull request Feb 6, 2018
…exe-target

Fix  rdmd --makedep(end|file) (issues 12351 and 12354)
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.

2 participants