-
Notifications
You must be signed in to change notification settings - Fork 141
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
ets-ms is attempting to match 'undefined' when using match-record with unspecified slots #466
Comments
Yes, this is a known problem, sort of. It has been caused by how the LFE compiler interfaces the Erlang compiler. It now pushed much more work to the Erlang compiler and gets all of the optimisations the Erlang compiler does, which is a lot. The downside was the handling of records inside the I am looking at a simple work-around and will get if it works. |
@dendrown A work-around to this is to do it the "erlang way" and use the function
I may need to improve the handling of |
Thanks, @rvirding. It's always good to know there's a work-around, |
Hello. When using the match-record macro within an ets-ms expression, the resulting match specification includes the default
undefined
atom for any record slots not explicitly specified. To use an example from Learn Yourself some Erlang for Great Good:Explicitly adding "don't cares" will give us what we need; however, I don't believe this is supposed to be necessary:
The text was updated successfully, but these errors were encountered: