@Rhuan: Sorry I haven't provided very much input here, you pointed out ChakraCore to me and the MIT license + pure C API + cross-platform-ness sealed the deal.
It's because addition outranks bitwise-OR in operator precedence:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_PrecedenceIn general, logical and bitwise operators are weird precedence-wise.
Addition binds before bitwise or--so you were actually OR'ing with 1, not 0.
Quote from: Fat Cerberus on August 29, 2017, 12:45:10 pmAddition binds before bitwise or--so you were actually OR'ing with 1, not 0.Oh, no wonder I was getting odd results.
By the way, the pain points you're hitting here re: separation of concerns, this is exactly the problem I have any time I try to design an object-oriented map engine. It's like designing a GUI framework, there's encapsulation in theory, but under the hood everything gets inextricably connected to everything else and there's usually no way around that.
Quote from: Fat Cerberus on September 02, 2017, 09:56:36 amBy the way, the pain points you're hitting here re: separation of concerns, this is exactly the problem I have any time I try to design an object-oriented map engine. It's like designing a GUI framework, there's encapsulation in theory, but under the hood everything gets inextricably connected to everything else and there's usually no way around that.It'll be fine ... But as it's going to force me to put an .rss loader into my SEngine.js script I'm currently working on a v2 .rss loader (I've snagged your old rss schema and am currently tweaking to integrate with the datareader script I'm using)