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

Parse error with macro and record field #11

Open
kalidasya opened this issue Aug 18, 2015 · 1 comment
Open

Parse error with macro and record field #11

kalidasya opened this issue Aug 18, 2015 · 1 comment
Milestone

Comments

@kalidasya
Copy link
Contributor

Parse error at line 10 column 62:
 1: -module(macro_with_record_field).
 2: 
 3: -define(MACRO, my_macro).
 4: 
 5: -record(?MACRO, {
 6:   field
 7: }).
 8: 
 9: my_function() ->
10:   ets:new(?MACRO, [set, named_table, public, {keypos, #?MACRO.field}, {read_concurrency, true}]).
@kalidasya
Copy link
Contributor Author

The issue is, we do not cover #Name.Field in the recordAccess rule but in the recordCreate so with the . it goes wrong... need some re-thinking

@kalidasya kalidasya modified the milestone: 1.2 Aug 18, 2015
@kalidasya kalidasya modified the milestones: 1.3, 1.2 Dec 15, 2015
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

No branches or pull requests

1 participant