kyren / piccolo

An experimental stackless Lua VM implemented in pure Rust
Creative Commons Zero v1.0 Universal
1.62k stars 59 forks source link

implement string.sub #67

Closed Jengamon closed 3 months ago

Jengamon commented 3 months ago

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

Jengamon commented 3 months ago

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