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



Hi, Barbara:

I appreciate your reply, and it makes perfect sense.

I am more concerned with checking the type, length and decimal places for "compatibility" across CALLs -- in other words, checking each parameter for the correct type of argument. Especially across separately compiled units (modules).

The compiler and/or runtime should provide for type checking of parameters / arguments for external procedures at bind-time, (for bind-by-copy or bind-by-reference), and compatibility checking at runtime for late-bound calls, to help ensure "type safety."

These ideas are well-known and documented in the literature, and their value has been proven in languages like Modula-2 since the 1980s.

Thanks,

Mark S. Waterbury

> On 5/17/2010 3:46 PM, Barbara Morris wrote:
On 5/14/2010 9:35 PM, Mark S. Waterbury wrote:
Given this whole set of problematic scenarios, would it perhaps not be
an improvement to have perhaps a new option on the compile commands to
allow the RPG IV compiler to at least flag these situations with a
WARNING message? Then, at least the programmer could look at those
warnings and perhaps take preventive / corrective action accordingly.

Mark, that question has come up before. The compiler isn't smart enough
to know that it shouldn't flag this type of statement
x = x + 1

The thinking was that there would just be way too many warning messages
to cope with.



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.