|
Douglas Handy wrote: >>This begs the question: What syntax would you prefer for bitwise >>operations? >Did you realize that V4R2 (or so) added MI builtins >which, for all practical purposes, already give you >the equivalent function with nearly identical syntax >to the BIF version aside from the name? Aaack! I missed Barbara's code! I searched the archives but couldn't find any related MI built-in code. I hit the C MI manual (V4R4) and could not find any reference to XOR. I deal with telephone switch data, so I have a Real Live Legitimate Business Need for bitwise operators! But, because I have that need, I've already coded my way around it, so I agree that it is low on my priority list. The main reason I'd like a BIF is that I don't need to hard-code the number of operands for OR and XOR. (Yeah I know I can use *OMIT and check the parameters, but I did those prototypes before that support was added... I already have legacy RPG IV code!) Buck Calabro Aptis; Albany, NY "Nothing is so firmly believed as that which we least know" -- Michel Montaigne Visit the Midrange archives at http://www.midrange.com +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.