Skip to content

Conversation

@Jengamon
Copy link
Contributor

I wanted to sub my strings, so I made a quick implementation

@Jengamon
Copy link
Contributor Author

This is related/dup-implementation of part of #36, however this handles strings as byte arrays, which corresponds with PUC-Rio Lua behavior

Jengamon and others added 22 commits May 13, 2024 19:13
Use saturating_add_signed to be safe
add out-of-bounds test for `j`
Fix `j` indexing
Fix `i == 0` case
Test `i == 0` case
- it has weird behavior on 32-bit architectures
...
poking at stuff without a dev env is "*fun*"
Add Number test
- by casting from u64 (i64 and i64::MIN negated) -> usize, rather than i64 -> isize
forgot i used it for `select` impl...
@kyren kyren merged commit c24d821 into kyren:master May 30, 2024
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.

2 participants