> In C/C++:
> i = 0 || 2; // i == 1
> In JavaScript:
> i = 0 || 2; // i == 2
> What about Java, C# or other C-like languages?
> digital mam
in c-like languages (depending on how a function evokes an evaluation) if the
Boolean callback is neither 0 nor 2 it will return a 1 as represented by the
induction of i, anything greater than 0 but less than 2 is 1) ... in JS if the
callback is greater than the initial state (0) then it is forced to 2 ..
risking looking like a moron ... there wasn't much meat on the bone in question
... either way, it's all about OS calls/callbacks ... hold it, where's my beer?
:-)
The Granny Lane, where seasoned drivers slow down and smell the blacktop roses
---
þ Synchronet þ AlleyCat! BBS -
http://alleycat.synchro.net:81