-
Notifications
You must be signed in to change notification settings - Fork 161
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
Different results in direct and in functions when using ~ #2469
Comments
(I took the liberty of adjusting your example to directly show both cases) Personally, I am not worried about this fringe case; Thing is, your proposed solution amounts to a minor de-optimization of the executor. Now, while I hope it won't matter in practice even for artificial examples, it still is a de-optimization. That makes me really wonder if "fixing it" this way is a good idea? I mean, we could just as well simply document this diverging behaviour... Anyway, I am not that concerned, so, whatever... ;-) |
I have a slightly bigger concern that it might be possible, with sufficently crazy abuse of |
Update: I can make GAP crash by doing sufficently horrible things with So, looking at the code, my suggested fix is:
|
I believe this was fixed in PR #2477 (it'd be really good to reference issues from PRs and vice versa) |
Consider this:
I'd like us to standardise on one of these. I have a preference for the first one, because it allows fixing a seperate problem (the partially built lists when
x
is in a function clearly have their length set to past their last element when partially built, which can upset various bits of code in GAP).The text was updated successfully, but these errors were encountered: