We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(x?y:z).id
When I build this
var _items = [ { id: 42}, { id: 9001} ]; var _id = (Mathf.random(10) == 0 ? _items[0] : _items[1]).id; Lib.trace(_id);
I will get this:
var __items_0 = { id: 42 } var __items_1 = { id: 9001 } show_debug_message(((random(10) == 0 ? __items_0 : __items_1)).id);
This work for windows targetes but will crash application for html5.
If enable feather inspections I have notification about this
The text was updated successfully, but these errors were encountered:
Because of extra parenthesis..?
If so, probably file a GameMaker bug since that's a pretty basic thing that shouldn't be illegal
Sorry, something went wrong.
No, parentheses are ok
As I understand instead of this:
var _id = (cond ? item1 : item2).id
must be it:
var _item = (cond ? item1 : item2) var _id = _item.id
I agree that this seems like a bug in gamemaker. I was confused that Feather mark this as error. I Will report for gamemaker developers.
YoYoGames/GameMaker-Bugs#2426
No branches or pull requests
When I build this
I will get this:
This work for windows targetes but will crash application for html5.
If enable feather inspections I have notification about this
The text was updated successfully, but these errors were encountered: