You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These two functions are apparently reserved but the developer is unaware. I have a tuple called 'object' in my project and necessarily I created indexing functions 'objectToIndex' and 'objectFromIndex'. Afaik the compiler did not warn me that I shouldn't use these reserved names and ultimately it used my functions instead of the wurst-generated object indexing functions that are generated when using "x castTo int".
Ideally I am able to use them since I can in jass and otherwise I would have to rewrite a large library. Maybe the compiler can detect if those functions have been defined by the user and instead generate different function names?
Or just change the names to something that is less likely to collide with developer code? "__objectFromIndex" and "__objectToIndex" perhaps?
The text was updated successfully, but these errors were encountered:
These two functions are apparently reserved but the developer is unaware. I have a tuple called 'object' in my project and necessarily I created indexing functions 'objectToIndex' and 'objectFromIndex'. Afaik the compiler did not warn me that I shouldn't use these reserved names and ultimately it used my functions instead of the wurst-generated object indexing functions that are generated when using "x castTo int".
Ideally I am able to use them since I can in jass and otherwise I would have to rewrite a large library. Maybe the compiler can detect if those functions have been defined by the user and instead generate different function names?
Or just change the names to something that is less likely to collide with developer code? "__objectFromIndex" and "__objectToIndex" perhaps?
The text was updated successfully, but these errors were encountered: