-
Notifications
You must be signed in to change notification settings - Fork 8
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
Iterator exceptions #2009
Iterator exceptions #2009
Conversation
This is failing CI testing because of the changes to |
96601ea
to
e2813f7
Compare
Temporarily back out the change of removing default value to max & min since it breaks existing code. We should only introduce the next max_def & min_def functions, switch over to using them and once that is done we can change min & max.
This PR has some bug, not sure where. After I have fixed max / max_def, the functionality of Acton programs should be identical before and after this branch, yet, when I do |
e2813f7
to
446db37
Compare
I don’t know what to do about this. If I do git pull in the main branch and then build the system and do make test, all tests pass. I also don’t know what the respnet repo is. Could you explain more?
Björn
… On 15 Dec 2024, at 23:07, Kristian Larsson ***@***.***> wrote:
This PR has some bug, not sure where. After I have fixed max / max_def, the functionality of Acton programs should be identical before and after this branch, yet, when I do make gen in the respnet repo, it generates entirely different code, indicating that somewhere we have an actual difference in behavior. I suppose it's best if I can find a smaller reproduction.. easier said than done.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@sydow respnet is https://github.com/orchestron-orchestrator/respnet/ - in that repo is a code generation step that can be run with However, the generated code does change and so I can only conclude that this PR does alter control flow somehow. |
I have created #2023 which effectively supersedes this PR. It includes your code @sydow but:
|
Closing this, see #2023 instead! |
Changes iterators so that they throw exception StopIteration at termination (rather than returning None).
As a consequence, the Iterator class in builtin.act his now defined by
class Iterator[A] (object):
next : () -> A
(previously the return type was ?A)