Subj : Re: Synchronet can maybe. To : Tracker1 From : Digital Man Date : Mon Aug 01 2005 01:25 pm Re: Re: Synchronet can maybe. By: Tracker1 to Digital Man on Sat Jul 30 2005 06:11 pm > Digital Man wrote: > >> Like 1<<1 vs 1>>1 ... iirc byte order isn't part of the js spec, or wasn' > >> earlier on... > > > > Those operators are not endian-specific. The only time endianness really c > > into play is when reading/writing an integer to/from disk or a communicati > > pipe (e.g. TCP socket). > > > > Since core JS doesn't include any methods for reading/writing to disk or > > sockets, I don't see how endianness could be an issue. > > okay, just tested this... > javascript:alert(1<<1); > > Looks like it works correctly on newer browsers, but will swear that a few > years ago, it explicitly did *not* work right on at least one mac browser, > don't recall if it was ie or nn... but do recall having endian issues in JS > a mac before. *shrug* But "1<<1" has nothing to do with endianness. (1<<1)==2 on *all* systems. digital man Snapple "Real Fact" #144: Texas is the only state that permits residents to cast absentee ballots from space. .