Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

binary integer form

Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
04-27-2004 07:59
what i would like is a binary integer form. Wouldn't be hard to implement into the compiler.
make the binary for have a "b" at the end of the number
Example:
CODE
integer a=010101b;
integer b=01010101010101010101010101010101b;
integer c=b & 001001001001001001001001001001b;
integer d= ~b;
ingeter e= (b==01010101010101010101010101010101b);
This would make working with bits easier for everyone (including the Lindens).

Basicly the compiler would convert the binary number to an ordinary integer; It would only look different in the code.

using "_b" might be easier to read...
Example:
CODE
integer a=010101_b;
integer b=01010101010101010101010101010101_b;
integer c=b & 001001001001001001001001001001_b;
integer d= ~b;
ingeter e= (b==01010101010101010101010101010101_b);
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Leonn Rubio
Rebmem Roines
Join date: 30 Jan 2004
Posts: 113
04-28-2004 21:21
That would be nice... but I'd settle for hex values. 0x00FF00 for my favorite colour.