Bitwise operator support in the ABL

  • Thread starter Thread starter CMI
  • Start date Start date
Status
Not open for further replies.
C

CMI

Guest
There seams to all have been a need for Bitwise operator in the 4GL/ABL for many years. There have been workaround solutions i.e. roll-your-own function or call a DLL/Shared Object Library. I understand that there is the Progress.Util.EnumHelper class object, but this is for WIndows+.NET only. List of Bitwise operator required (There may be more): XOR (Bitwise Exclusive-Or) AND (Not sure how this could be represented as AND is already used for Logical and & is special in the ABL) Left Shift (Represented as a double left chevron with an integer value) Right Shift (Represented as a double right chevron with an integer value) May be the existing ABL AND operator could be extend if the expressions on either side are not logical values. Example of possible syntax: var1 = var2 XOR var1. var2 = var2 3 or var2 = var2 RSH 3 var2 = var2 3 or var2 = var2 LSH 3 If this could be represented as operator rather than a function/method that would be great.

Continue reading...
 
Status
Not open for further replies.
Back
Top