Skip to content

Conversation

Diggsey
Copy link
Contributor

@Diggsey Diggsey commented May 21, 2013

Introduces a new type, TypeEnum which stores just the tag part of an algebraic type.

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

@korobochka
Copy link

Have a look at this pull: dlang/dmd#1342
With this DDoc improvement there is no need to have separate unittest and example if their code is the same.

@ghost
Copy link

ghost commented Oct 24, 2013

Please follow the D style convention, that means braces on their own line and 4-space indentation.

The isA and from methods need to be documented.

static if (staticIndexOf!(U, T) == -1) {
return false;
} else {
return _index == staticIndexOf!(U, T);
Copy link

Choose a reason for hiding this comment

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

Shouldn't this line suffice, IOW the above static check is unnecessary? I don't see how _index can ever be -1.

@ghost
Copy link

ghost commented Feb 15, 2014

Closing due to inactivity.

@ghost ghost closed this Feb 15, 2014
@ghost
Copy link

ghost commented Feb 15, 2014

Ping one of us if you want this reopened.

This pull request was closed.
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