Bomb Bloke, on 14 January 2014 - 08:27 PM, said:
Galbi3000, on 13 January 2014 - 01:09 AM, said:
Why use a function like colors.combine? Yes, you make a very valid point that using addition is incorrect for this purpose but there is another mathematical operator in programming that will do the exact same as colors.combine, the 'and' operator ( & ).
E.G. colors.white & colors.white & colors.orange = 3 which is the same result as colors.white + colors.orange effectively ignoring the extra white, and is exactly the same as your colors.combine example only shorter to write and quicker in operation (as the interpreter does not have to do extra overhead stuff before and after calling the function of combine in the colors object)

Er, no, colors.white & colors.white & colors.orange = 0. You're thinking of "or", usually denoted by a pipe, though under ComputerCraft's Lua implementation you have to use the
bit.bor() function (which only accepts two parameters, unlike
colours.combine(), making BIT's code easier to implement then what you propose).
The colour functions are there for simplification - granted they do so little as to be near redundant (in the past I've forgotten they exist), but they're easier to explain, for one thing.
Sorry, you are right, OR would work and not AND as I stated. But besides my mistake of saying AND instead of OR, the reason for using the logic operator to combine the values is still a valid reason. ComputerCraft is using an interpreted language, using a function slows a program a lot more than a mathematical operator (even on modern powerful systems as it's being interpreted inside a game).
theoriginalbit, on 11 July 2014 - 12:18 AM, said:
Galbi3000, on 10 July 2014 - 04:12 PM, said:
Native support for RedPower in versions after 1.4.7 is pointless as RedPower is no longer in development.
Well someone clearly isn't keeping up with the modding community.
Eloraam has started development on RP3
Well, Twitter failed to inform me of her post as I too follow Eloraam's tweets

In it she states it will be a new version and not RedPower 2 ported so my statement still holds true