-
Notifications
You must be signed in to change notification settings - Fork 127
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
Recursive update exception: assignment to a cage with lazy right hand side is a problem! #462
Comments
The previous eaxmple only uses dataizable objects, so it does not need
|
@dours on second thought, it seems that this won't help, since |
@dours another option is this:
|
@dours or this one:
|
@yegor256 what does What about the second example,
does not work (StillAbstract exception) |
@dours yes, |
@dours try this:
Maybe it's a syntax problem. But I doubt it. Please, post your entire stack trace. |
@yegor256 I don't think that it is a syntax problem. I just don't want to dataize the right hand side of assignment in this example, because it is not dataizable. I try to express a list as a pair of head (the first element of a list) and tail (the rest of the list, which is a list itself). I construct a list with two elements by adding a head to a list with one element ( But if I'm forced to dataize the right hand side of that assignment, then the representation of my list is changed in the middle of construction, that's the problem! (I mean, even if I make my list implementation dataizable, a dataization of a list is not the list itself, how can I add an element to it?). Is this stack trace entire enough? I don't know how to get rid of "... 88 more". Maybe, you don't need the trace to answer my question.
|
@dours you understand the error message? It says that it can't find |
@rultor release, tag is |
@dours I believe this problem is fixed in version
The new syntax introduced is
This line, when being dataized by |
Job |
fails.
Of course:
x.write (x.add 1)
is implemented basically asx := (lambda nothing -> x + 1)
. Any attempt to calculatex
leads to endless recursion.The text was updated successfully, but these errors were encountered: