× 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-error" marks a block of code that will run conditionally.

All statements related to "select" belong to "Free Form Control-Flow"
whereas "on-error" belongs to "Operation". Following your explanation,
"when" and "other" statements should have the same color as "on-error".
Since that is not true, I assume that "on-error" has been accidentally
assigned to "Operation".

I use the same color (red) for "Operation" and "Free Form Control-Flow",
which is just fine for me, now.

Thomas.

wdsci-l-bounces@xxxxxxxxxxxx schrieb am 19.12.2013 20:59:59:

Von: mlavinder@xxxxxxxxxxxxxxxxxxx
An: wdsci-l@xxxxxxxxxxxx,
Datum: 19.12.2013 21:01
Betreff: Re: [WDSCI-L] Color Coding inconsistencies
Gesendet von: wdsci-l-bounces@xxxxxxxxxxxx

I have to admit, I like the color scheme too.

I think it has to do something with op-codes that mark blocks of
callable/sectioned code vs. op-codes that control flow. So, while
"monitor" controls the program and tells it to watch for an error,
"on-error" marks a block of code that will run conditionally.
Subroutines are the same thing. It marks a block of code that are only
ran conditionally (in other words, when called). In both cases the
op-codes themselves really do not "control" logic but mark/tag area
blocks that may or may not be called.

I think that's how they did it, but I agree on-error being a different
color from monitor seems odd, but I guess they are treating it like a
"label". Honestly, I think it could have gone either way.


First let me state, I'm really liking the color coding enhancement
to RPG. Dare I say, love.

That said, I feel that there are either inconsistencies, or I'm
misunderstanding some of the coloring.

On-Error is red, but I think it should be purple. Purple seems to
be for opcodes related to program logic control. That said, I do
like that BegSr & EndSr (which I'd lump in that category) are red.

-Kurt


--
This is the Rational Developer for IBM i / Websphere Development
Studio Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.


--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone else is prohibited and may be a criminal
offence. Please delete if obtained in error and email confirmation to the sender.

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.