× 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.



On 2023-08-18 10:37 p.m., Buck Calabro wrote:
...
Some of the rules are a puzzle. ...

Indeed!

The rule about having an odd number of digits for a packed variable is very strange. The given reason about wasting a half-byte of space makes no sense if I don't need that half-byte for the way the variable will be used. But I think the old guideline about not using an even number of digits was related to performance for some older hardware. But even if there were a tiny performance difference, surely it's more important to have a variable defined correctly for how it is to be used.
https://rules.sonarsource.com/rpg/RSPEC-1619/

Another one that bugs me is about requiring prototypes. The rule is fine. But then the "compliant" example has a prototype for 'OtherProgram' which breaks another rule: that a prototype for something outside the module should be in a /COPY file. (I didn't see a rule for that ...)
https://rules.sonarsource.com/rpg/RSPEC-2202/


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.