I would really like to introduce a SHIFTLEFT and SHIFTREIGHT BINARY
Operator in NetRexx. As you all know, we cannot use << for shift left (as Java) *or* >> for shift right. As an experiment, I am TRYING to implement: *< for shift left *> for shift right As this is currently a syntax error in NetRexx, it might be a possible solution for BIT-Freaks! (*and*, also of course, for efficiency) :-) *OR*: Is the Java and NetRexx Compiler anyway translating a term like 2**4 to a shift-left ??? What do you know *and* say? Thomas. PS: Please do note, that in my current implementation, all OPERATORS are defined EXTERNALLY, for instance in NetRexx.opers (Language NetRexx), thus can be SYNONYMED or REPLACED by individual preferences.... ;-) -- Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
Or, just maybe, once in a while you could use an existing java library that doesn't require the <<>> operators.
http://binarynerd.com/java-tutorials/advanced-java/bitwise-operations-bitset.html http://download.oracle.com/javase/1.4.2/docs/api/java/util/BitSet.html -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Thomas Schneider Sent: Thursday, November 17, 2011 8:45 AM To: IBM Netrexx Subject: [Ibm-netrexx] Some BINARY new Operators. I would really like to introduce a SHIFTLEFT and SHIFTREIGHT BINARY Operator in NetRexx. As you all know, we cannot use << for shift left (as Java) *or* >> for shift right. As an experiment, I am TRYING to implement: *< for shift left *> for shift right As this is currently a syntax error in NetRexx, it might be a possible solution for BIT-Freaks! (*and*, also of course, for efficiency) :-) *OR*: Is the Java and NetRexx Compiler anyway translating a term like 2**4 to a shift-left ??? What do you know *and* say? Thomas. PS: Please do note, that in my current implementation, all OPERATORS are defined EXTERNALLY, for instance in NetRexx.opers (Language NetRexx), thus can be SYNONYMED or REPLACED by individual preferences.... ;-) -- Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hello Mike, I'm already using those Libraries...
Got the hint about BitSet sometime ago. Cannot recall from whom... Thanks, anyway, for the follow up. Thomas. PS: Anyway, my personal feeling is, taht for *any* existing BINARY OPERATOR there should be an equivalent NetRexx Operator! But this is a *personal feeling*, of course, only... :-) =============================================================== Am 17.11.2011 16:00, schrieb Measel, Mike: > Or, just maybe, once in a while you could use an existing java library that doesn't require the<<>> operators. > > http://binarynerd.com/java-tutorials/advanced-java/bitwise-operations-bitset.html > > http://download.oracle.com/javase/1.4.2/docs/api/java/util/BitSet.html > > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Thomas Schneider > Sent: Thursday, November 17, 2011 8:45 AM > To: IBM Netrexx > Subject: [Ibm-netrexx] Some BINARY new Operators. > > I would really like to introduce a SHIFTLEFT and SHIFTREIGHT BINARY > Operator in NetRexx. > > As you all know, we cannot use<< for shift left (as Java) *or*>> for > shift right. > > As an experiment, I am TRYING to implement: > > *< for shift left > *> for shift right > > As this is currently a syntax error in NetRexx, it might be a possible > solution for BIT-Freaks! > (*and*, also of course, for efficiency) :-) > > *OR*: > > Is the Java and NetRexx Compiler anyway translating a term like 2**4 to > a shift-left ??? > > What do you know *and* say? > Thomas. > > PS: Please do note, that in my current implementation, all OPERATORS are > defined EXTERNALLY, > for instance in NetRexx.opers (Language NetRexx), thus can be SYNONYMED > or REPLACED > by individual preferences.... ;-) > > > -- Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org) _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
Free forum by Nabble | Edit this page |