Files
wren/src
Bob Nystrom a1ffad75e5 feat: add string count primitive returning character length
Implement the `count` method on string objects by adding a new `primitive_string_count` function that calculates the length of the string using `strlen` and returns it as a numeric value. Register the primitive on the string class during VM initialization, including the forward declaration and the class setup in the `newVM` function.
2013-10-26 21:34:15 +00:00
..