Skip to content

Fix string negative indexing#323

Open
WoodchuckXL wants to merge 1 commit into
Morpho-lang:devfrom
WoodchuckXL:strindex
Open

Fix string negative indexing#323
WoodchuckXL wants to merge 1 commit into
Morpho-lang:devfrom
WoodchuckXL:strindex

Conversation

@WoodchuckXL

Copy link
Copy Markdown

Fix for bug #321. Strings now throw an error if the user attempts to index them negatively. Added a test to the suite to check for this behavior.

Internally, this bug appeared because the string index operation was calling the enumerate function instead of a dedicated get index function.

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