|
"on-error" marks a block of code that will run conditionally.
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 enhancementto RPG. Dare I say, love.
misunderstanding some of the coloring.
That said, I feel that there are either inconsistencies, or I'm
be for opcodes related to program logic control. That said, I do
On-Error is red, but I think it should be purple. Purple seems to
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.
As an Amazon Associate we earn from qualifying purchases.
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.