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

Add isFinalFunction, isAbstractClass, and isFinalClass to std.traits #1099

Merged
merged 2 commits into from Jan 27, 2013
Merged

Add isFinalFunction, isAbstractClass, and isFinalClass to std.traits #1099

merged 2 commits into from Jan 27, 2013

Conversation

ghost
Copy link

@ghost ghost commented Jan 25, 2013

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

As per Walter's comment __traits should have template equivalents.

*/
template isAbstractFunction(method...)
if (method.length == 1)
template isAbstractFunction(T...)
Copy link
Member

Choose a reason for hiding this comment

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

Why are the varargs necessary?

Copy link
Author

Choose a reason for hiding this comment

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

It seems to be a convention in Phobos to allow both types and non-types to pass through. alias iteslf doesn't accept types.

Copy link
Member

Choose a reason for hiding this comment

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

OK.

@alexrp
Copy link
Member

alexrp commented Jan 27, 2013

LGTM other than my question.

alexrp added a commit that referenced this pull request Jan 27, 2013
Add isFinalFunction, isAbstractClass, and isFinalClass to std.traits
@alexrp alexrp merged commit 74d8804 into dlang:master Jan 27, 2013
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