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

Even more extreme macro (builds off last PR) #85

Merged
merged 5 commits into from
Aug 6, 2016

Conversation

acmcarther
Copy link
Owner

@rschifflin

This requires type macros, but they're slated to stabilize in 1.11, so...

(write | $t:ty) => {$crate::simple_specs::Write<'a, $t>};
(read | $t:ty) => {$crate::simple_specs::Read<'a, $t>};
(write_component | $t:ty) => {$crate::simple_specs::AspectWrite<'a, $t>};
(read_component | $t:ty) => {$crate::simple_specs::AspectRead<'a, $t>};
Copy link
Owner Author

Choose a reason for hiding this comment

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

This "'a" is actually unhygenic, but it compiles. I don't know any way to pass a lifetime into a macro, so thats all I got.

@acmcarther acmcarther merged commit c543878 into acm-macro-time Aug 6, 2016
@acmcarther acmcarther deleted the acm-mega-macro branch August 6, 2016 05:29
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.

1 participant