× 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: Indicator enhancements (was Bale, Dan)
  • From: Joel Fritz <JFritz@xxxxxxxxxxxxxxxx>
  • Date: Wed, 8 Mar 2000 12:29:20 -0800

It's a matter of taste to me, but...

The main advantage to using defined constants that I can see is saving a bit
of storage and making the comparisons a little bit more efficient.  If you
use one byte values for your constants, the economy is there.  It's not
exactly a big deal with today's hardware.  If you have a standard set of
constants in your program skeleton or a copy member, it can save you some
typing.  

Also seems to me that if the constants are used as flags, the names should
tell you everything you need to know about them to use them, and you won't
need to refer to the D-specs except to satisfy your curiosity.     

Again, I think it's a matter of taste; I'm just the ultimate arbiter. <vbg>


> -----Original Message-----
> From: Bale, Dan [mailto:DBale@TFSA.Textron.com]
> Sent: Wednesday, March 08, 2000 12:02 PM
> To: 'RPG400-L@midrange.com'
> Subject: RE: Indicator enhancements (was Bale, Dan)
> 
> 
> Me, I'd just junk the defined constants and use literals in 
> the expression.
> That way I don't have to bother looking up the D-specs to see how the
> constants are defined.
> 
+---
| 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 ...


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.