Skip to content
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

String slicing not working in the vm #3300

Closed
Confundus opened this issue Sep 7, 2015 · 0 comments
Closed

String slicing not working in the vm #3300

Confundus opened this issue Sep 7, 2015 · 0 comments

Comments

@Confundus
Copy link

Tested on Windows with the latest devel branch:

>>> let str = "a.exe"
>>> echo str[2..4]

Error: type mismatch: got (string, Slice[system.int])
but expected one of:
system.[](s: seq[T], x: Slice[system.int])
system.[](a: array[Idx, T], x: Slice[[].Idx])
system.[](a: array[Idx, T], x: Slice[system.int])

Works in 0.11.2. Being able to do these with nimscript is a nice prospect btw.

@Araq Araq closed this as completed in 5eaf688 Sep 8, 2015
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

No branches or pull requests

1 participant