Closed BraedonWooding closed 5 years ago
Did this code ever work? Or is it Moonsharp that just allowed us to do this?
That is the weird thing, I can't find any source that it allows it and in the list of differences here it doesn't list it as an allowed operation (it definitely isn't in LUA)
It should have error'd out to be frank, perhaps it allows it but doesn't document it? I'm going to look into it before I merge this.
Okay despite there being no documentation on it I have found the answer in the source code (nothing like searching through some source code for undocumented features).
The answer is that it changes !=
to ~=
when parsing (it literally changes the token as you can see on this line).
This doesn't mean honestly that this shouldn't be merged, I would still count using != as a bug since;
Yeah, this seems like a good change to me.
As the title says fixes it by changing the comparisons