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

[enh] Issue 10818 - Allow parameterized enum declaration #2474

Closed
wants to merge 1 commit into from

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Aug 13, 2013

@@ -459,6 +460,8 @@ Dsymbols *Parser::parseDeclDefs(int once, Dsymbol **pLastDecl)
break;
}

Token *tk;
Copy link

Choose a reason for hiding this comment

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

Not sure why you've moved this up, it's only used below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's no big reason.

  1. The original place was slightly difficult to find the declaration statement.
  2. The code block Look for auto initializers: might use tk variable in the future (eg. DIP32)

@schuetzm
Copy link
Contributor

Can this be closed? IIUC the functionality has been implemented by PR #2467.

@ghost
Copy link

ghost commented Aug 4, 2014

@9rnsr: Update on the last comment?

@9rnsr
Copy link
Contributor Author

9rnsr commented Aug 5, 2014

DIP42 was for manifest constant declaration syntax, but issue 10810 is a small syntactic sugar for normal enum declarations.

But, today this is very low priority and nobody interests it. So I close this, but anyone can reopen to discuss the feature.

@9rnsr 9rnsr closed this Aug 5, 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