> > I have to check that out. I guess it depends on the compiler
> > or intepreter.
>
> It's pretty rare for anything like this to depend on the compiler or
> interpeter.

We are still talking about short circuits?

For bitwise conditions. It can be larged based on only compiler/
interpreter but machine word size.  This is in fact, a could be a
common bug in code:

      if (a & b) .... versus        if ((a & b) == b) ....

depending on the language compiler/interpreter, the machine word size
and the language word size.  The latter is 100% guarantee to be
correct, the former, you typically is ok, but you can not be confident
that it will be.

> Operator semantics are a pretty basic part of the core
> JavaScript language, and you should be able to count on that expression
> working the same in any JavaScript implementation.

Is that basically because there is only one JavaScript source everyone
is using?  :-)

--
HLS

Reply via email to