× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Bitwise ops in RPG (was: Re: Determining *DS4 support)
  • From: Douglas Handy <dhandy1@xxxxxxxxxxxxx>
  • Date: Wed, 15 Nov 2000 10:03:48 -0500

Barbara,

>Doug, Scott's question about more than 2 operands provides one reason
>why bitwise builtins would be a useful enhancement.

Yeah, I posted my response before Scott's showed up at my end. :(

Still, this falls under the category of stuff we can handle relatively easily
with a service program.  Just create your own BITxxx procedures with numerous
arguments coded as CONST and *NOPASS.  In the routine just use %parms to
determine how many times to use the MI builtins to aggregate your return value.

I'm *not* against the BIFs -- it would standardize how everybody does it and
arguably make it more "mainstream" if it were documented in the RPG manual
instead of relying on MI builtins.  But as a general rule, I don't mind using
service programs.  Follow on programmers don't have to be able to code the
service program -- they just have to understand how and why to call or use the
"black box" routines.  Documentation can provide this.

Doug
+---
| 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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.