Skip to content

trap use of minus in indexing in nf code#1561

Merged
paciorek merged 5 commits into
develfrom
check-bad-index
Jul 10, 2025
Merged

trap use of minus in indexing in nf code#1561
paciorek merged 5 commits into
develfrom
check-bad-index

Conversation

@paciorek
Copy link
Copy Markdown
Contributor

This fixes issue #1525

@paciorek
Copy link
Copy Markdown
Contributor Author

One note is that one could (in presumably unusual circumstances) still (properly) use - like this:

idx = -5
idx2 = -idx
y = x[idx]

if one really needed to do x[-idx].

@paciorek paciorek merged commit 2e64b61 into devel Jul 10, 2025
8 checks passed
@paciorek paciorek deleted the check-bad-index branch July 10, 2025 00:09
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.

1 participant