-
Notifications
You must be signed in to change notification settings - Fork 168
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
array.index_of: string argument got mistaken as function? #795
Comments
I believe If you put in a string, it looks up a script function of the same name. Thats why it is looking for a function called |
There is an
rhai/src/packages/array_basic.rs Lines 823 to 833 in 169af8e
|
It works for all types except string, where it got mistaken as name of a function... The versions with function names as strings are deprecated but not yet removed for fear of breaking scripts. Therefore unfortunately the depreciated version override the standard generic version. |
The text was updated successfully, but these errors were encountered: