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



So a blank in the 6th position would dictate that it's /free? So long as the compiler understands that a blank line between two D-specs isn't really a free format C-spec.

This would be nice, and I may open up a DCR (b/c once I found out how...), but this really doesn't provide any functionality. Clean code is nice, though.

I just opened a request asking for the 2nd parameter of the %kds BIF to be allowed to be a variable (as opposed to constant-only).


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark S. Waterbury
Sent: Friday, May 22, 2009 1:38 PM
To: RPG programming on the AS400 / iSeries
Subject: enhancement idea for ILE RPG IV free-form

Hello, all:

I want to see what the group thinks of this idea...

Instead of having to code /free and /end-free, to drop into free form
and back out again, why not just let the compiler make the decision, on
a line-by-line basis, depending on the presence of the "C" in the column
(for C-specs)? If the "C" is there, treat the line as fixed format. If
there is a blank in that column, then we are in /free format.

This would make it much easier to intermix fixed-format statements and
free-form statements, as and when needed, and also would just make the
code look better, as all of those (meaningless, except to the compiler)
/free and /end-free statements can be eliminated.

Should we all start opening DCRs for this? :-)

Thanks in advance for your thoughts.

All the best,

Mark S. Waterbury

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.