× 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: Is this the Free-Format that we asked for?
  • From: Anton Gombkötö <Gombkoetoe@xxxxxxxxxx>
  • Date: Thu, 02 Nov 2000 09:51:53 +0100

First of all, John,
thnak you very much for this info!

<snip>
As most of you are aware, the biggest enhancement to the new release is the
>free-format "CF-spec" that has been discussed at length on this list. Here
>is an example, straight from an article written by George Farr, of how we
>would code the new free-format statements:
>
>
>/free
>
>     Read(n) MASTER;
>     If (not %EOF);
>       /copy something
>          For i = 0 to num;
>               x = y(i);
>          EndFor;
>     EndIf;
>
>  /endfree;
>
>I'd like you to take notice of the semi-colon at the end of each statement.
>According to the new rules, each program statement MUST terminate with a
>semi-colon - ala C/Java.
>
>The only reason that Java required this at all is because it was designed to
>closely resemble C syntax, in order to facilitate adoption of the language
>by existing C programmers. Why C had it in the first place is beyond me. But
>now we're being shackled with the same superfluous baggage.
>
>There is no shortage of free-format languages that have managed to do the
>job without requiring the programmer to type an explicit end of statement
>character. Why does RPG need one? Think about this folks. EVERY SINGLE LINE
>of code needs the new terminator. How many extra keystrokes will that amount
>to in a given day of coding? And what is it gaining you? NOTHING!

Do we need to code the + to continue on the next line? I assume: NO. As i'm 
trying to avoid spaghetti, i use quite some lines. So this would make some 
EVALs easier to read and would sum up to no win/no loss, maybe.

>One other point that should be brought to your attention is the elimination
>of the GOTO statement from the free-format specifications.

<snip>

I appreciate it! GOTO, handled with care and some mercy to others, is 
*sometimes* clearer than another constructions. But i happily say good bye 
to GOTO, as i never can be sure of that. The other point that hits my eye 
is that your code has two exit points. I don't like that, too.

>Granted, it's not the only way to accomplish the goal, but (IMO) it is clean
>and simple. You may choose to do it using nested IF's, or one big SELECT, or
>a handful of other ways. But the point is that you have a choice. Now, IBM
>has decided to take away one of our choices in the matter.

You still have the choice to not use it. When i interpret the /free and 
/endfree compiler directives correctly, one can code the TAG and the GOTO 
in the fixed format scheme. And i think that RPG III and fixed format RPG 
IV will be supported for quite a time...

>Ideally, you can participate in the feedback forum at www.as400network.com
>to share your opinions. If you can't do that, then please share them on this
>list; since we know that Hans & Barbara monitor it.

I'll have a look at it, but thank you for putting this on this list!

Mit freundlichen Grüssen / best regards

Anton Gombkötö

e-mail Office   :       mailto:Anton.Gombkoetoe@avenum.com
Homepage        :       http://www.avenum.com

----------
Avenum Technologie GmbH
Brigittenauer Lände 50-54, Stiege 6     Salzburger Strasse 29   Dreifelder 
Strasse 4
A-1200 Wien / Austria                   A-5163 Mattsee          D-70599 
Stuttgart

Tel./phone      :       +43-1/92101-148         +43-6217/5995 - 
0               +49-711/4411 116
Fax             :       +43-1/92101-300         +43-6217/5995 - 
13      +49-711/4411 563

----------
Avenum ist der Zusammenschluss von AS Software und Black System.

----------

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