-
Notifications
You must be signed in to change notification settings - Fork 13
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
MethodError: isvalid(::String31) #60
Comments
i wonder if the correct definition is just the same as for (here's the i.e. something like Base.isvalid(s::InlineString) = ccall(:u8_isvalid, Int32, (Ptr{UInt8}, Int), s, sizeof(s)) != 0 i think the only thing this doesn't do is check the last byte (the length of the InlineString) in any way -- do we need to check that? |
Nah, we don't need to check the length; yeah, that definition sounds good to me. @jariji, mind making a PR with a test? |
With JuliaLang/julia#47880 (which should be in Julia 1.10), you shouldn't need to do anything — it adds a fallback method |
I think it is fine to close this with the feature being included into 1.10 which will soon be the new LTS: |
This method would be useful:
The text was updated successfully, but these errors were encountered: