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 __traits(isKeyword, "...") trait. #1144

Closed
wants to merge 1 commit into from
Closed

Add __traits(isKeyword, "...") trait. #1144

wants to merge 1 commit into from

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Sep 26, 2012

No description provided.

@dnadlinger
Copy link
Member

Wouldn't it be possible to replace this for all practical uses by a clever library implementation using __traits(compiles, ...) and e.g. a dummy symbol?

@WalterBright
Copy link
Member

I'm not seeing the point of this being wired into the compiler, when it can easily be done with a library function. Furthermore, I don't see the point of it existing at all. What is the compelling example?

@alexrp
Copy link
Member Author

alexrp commented Sep 27, 2012

I suppose it could be implemented as a library template. The original use case for it is to avoid generating names that conflict with keywords when using mixins.

@alexrp alexrp closed this Sep 27, 2012
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.

3 participants