-
Notifications
You must be signed in to change notification settings - Fork 3
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
Storing non-storable types #142
Comments
Just realized that a much simpler test case would be a |
Maybe the second solution is not so bad after all. We already have arrays which are in some sense generalizations of references. |
For the sake of argument, what would be the difference between the new sub-class and |
This is a bug that should be fixed in the code generator somewhere; I assume it relates to How urgent/important is this for you? I don't think it's a minor local fix. |
I'm not sure actually. The simplest thing would be to just exclude But it would of course be nice if this could be fixed in the back end. Arrays of references can be useful. |
Not urgent at all. I just started to think about this for a different reason. |
I will move this issue to feldspar-compiler. |
It is currently possible to e.g. make an array of references, but this doesn't do the right thing when generating code. The array will contain the values of the references, not the references themselves.
Example:
Generated code:
The assignment
v7 = 33
doesn't update the original referencev1
.Possible solutions:
Ref
(and maybe other types) fromType
Type
that excludesRef
(and maybe other types), and use that to constrain functions likeparallel
The text was updated successfully, but these errors were encountered: