Skip to content
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

Enhance compile-time and run-time error-trapping of size mismatches for assignment operator #1459

Merged
merged 2 commits into from
Jul 26, 2024

Conversation

perrydv
Copy link
Contributor

@perrydv perrydv commented Jun 3, 2024

This aims to fix #1425 .

It puts a bunch of new logic in sizeAssignAfterRecursing to catch compile-time and run-time mismatches when a vector or matrix with indexing on the LHS is assigned from another vector or matrix. All the new logic is behind a new nimbleOption so it can be toggled off if it ever causes problems. There is a very real possibility that this will break something in testing as assignment processing is pervasive.

@paciorek
Copy link
Contributor

paciorek commented Jun 6, 2024

We think this is basically good to go (test failures look unrelated) but decided to leave out of 1.2.0 in last push to release.

@paciorek
Copy link
Contributor

@perrydv well we don't have much time before 1.2.1 release, but perhaps this is the time to do this? Given it's a minor release we won't be strongly encouraging folks to upgrade.

@perrydv @danielturek any thoughts?

@danielturek
Copy link
Member

@paciorek Given that (a) it's a minor release, (b) this is protected behind an option, and (c) this is a useful improvement, I would vote to include it.

Furthermore, it's easier now to include it for 1.2.1, then if problems arise, fix (or remove) it for 1.3.0. But it's more annoying if it causes problems in an initial 1.3.0 release.

That said, I defer to either of you.

@paciorek
Copy link
Contributor

Yes, that was my thinking regarding doing now vs. 1.3.0. I'll proceed with this.

@paciorek paciorek merged commit 797279d into devel Jul 26, 2024
6 of 8 checks passed
@paciorek paciorek deleted the sizeAssign-errorTraps branch July 26, 2024 14:55
@perrydv
Copy link
Contributor Author

perrydv commented Jul 26, 2024

I'm ok with the decision here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

size-related compilation issues when adding scalar to vector to matrix in model
3 participants