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 8074 - Template-mixin example contradicts text. #559

Merged
merged 1 commit into from Apr 24, 2014
Merged

Issue 8074 - Template-mixin example contradicts text. #559

merged 1 commit into from Apr 24, 2014

Conversation

ghost
Copy link

@ghost ghost commented Apr 23, 2014

$(P If a mixin has an $(I Identifier), it can be used to
disambiguate:
disambiguate between conflicting symbols:
)
Copy link
Member

Choose a reason for hiding this comment

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

I think the original text is correct, mixin templates work a lot like imports, so functions aren't overloaded unless you use alias. In this example Bar.func is called because Foo.func wouldn't work without an argument. If you changed to Bar.func(long x) the example would correctly exemplify the point.

@ghost
Copy link
Author

ghost commented Apr 24, 2014

@MartinNowak: Changed to instead use the int / long example, which makes the original text correct.

MartinNowak added a commit that referenced this pull request Apr 24, 2014
Issue 8074 - Template-mixin example contradicts text.
@MartinNowak MartinNowak merged commit b11d067 into dlang:master Apr 24, 2014
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