View previous topic :: View next topic |
Author |
Message |
Camdog
Joined: 08 Aug 2003 Posts: 606
|
Posted: Wed Jul 19, 2006 9:26 am Post subject: Bitwise operators? |
|
|
Are there bitwise operators in hamsterspeak?
And, if not, would this be a difficult thing to implement in future versions? They'd be real handy for things that basically require bitwise operations, like manipulating wallmap data on the fly. |
|
Back to top |
|
 |
Joe Man

Joined: 21 Jan 2004 Posts: 742 Location: S. Latitude 47°9', W. Longitude 123°43'
|
Posted: Wed Jul 19, 2006 10:13 am Post subject: |
|
|
I'm not so keen on this. Are you asking for plotscripts to change the actual RPG file? Just so I understand. _________________ "Everyone has 200,000 bad drawings in them, the sooner you get them out the better."
~Charles Martin Jones
Last edited by Joe Man on Fri Dec 13, 1957 1:21 am; edited 2,892 time in total |
|
Back to top |
|
 |
Camdog
Joined: 08 Aug 2003 Posts: 606
|
Posted: Wed Jul 19, 2006 10:18 am Post subject: |
|
|
No, I'd like bitwise operators because they'd work well with already existing hamsterspeak commands. Specifically, write pass block and read pass block. |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Jul 19, 2006 12:36 pm Post subject: Did you try? |
|
|
The existing and, or, and xor operators are already bitwise.
Mike recently added logical operators && and || and ^^ because there were certain situations where using the bitwise operators was causing counter-intitive results. |
|
Back to top |
|
 |
Camdog
Joined: 08 Aug 2003 Posts: 606
|
Posted: Wed Jul 19, 2006 1:26 pm Post subject: |
|
|
Aha! Thanks for clearing that up. |
|
Back to top |
|
 |
|