I’ve noticed (through a bug squashing session) that the following two pieces of squirrel produce a different result while I assumed they would not. The root cause of the bug was a typo as I wouldn’t on purpose use this kind of syntax, but one that for instance in C would not make a difference.
Is this normal ? What are the rules in squirrel wrt space separation for arithmetic operators ?
sunsethr <- 18; sunsetmin <- 12; server.log(format("%x",sunsethr * 65536 + sunsetmin * 256)); server.log(format("%x",sunsethr *065536 + sunsetmin * 256));
this produces the following output :
|2018-10-19 21:58:26 +02:00||[Agent]||120c00|
|2018-10-19 21:58:26 +02:00||[Agent]||7989c|