-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix the []= proc #1
Comments
Actually... there is nothing to fix. Due to Nim operator overloading always choosing the returning var |
These need to be fixed: proc `[]`*(x: var String; i: int): var char {.inline.} =
checkBounds(i, x.len)
x.p.data[i]
proc `[]=`*(x: var String; i: int; val: char) {.inline.} =
checkBounds(i, x.len)
x.p.data[i] = va |
For |
Maybe don't provide the |
Or maybe use something like |
No description provided.
The text was updated successfully, but these errors were encountered: