|
Dennis,
I don't think there's anything wrong with having the compiler send a
warning
message if you do certaiin things that *could* give problems at runtime.
After all, that's why we have the GENLVL parameter for the generation
commands. Moving large numeric fields into small numeric fields is an
obvious choice.
As for where, specifically, it should stop, I have no idea - I wouldn't
have
any of it in there, but that's because I check my code before I compile it
(like you, I rmemeber the hell that is adding a compile job to a job queue,
waiting for hours for it to complete and have it throw an error because of
a
spelling error). Mind you, an interactive syntax checker would have been
dandy, back then...
Rory
On Mon, May 17, 2010 at 4:13 PM, Dennis Lovelady <iseries@xxxxxxxxxxxx
wrote:
toBut it surely *is* smart enough to recognize that
Pack5P = Pack10P;
could be problematic?
Just where should this stop, exactly? How much responsibility shall we
place on the compiler so that we can blame IBM while we point at the
listing
and say, "See? It didn't catch that! There's nothing wrong with it!"
And how much responsibility shall we place on our own shoulders?
<soapbox>The whole idea of throwing something at the compiler to see what
comes back, is irresponsible and lazy. Those who knew what it was like
wait 24 hours (72 on weekends) for the result of one compile, will knowlist
what
I'm talking about, and those people probably do a far better job of
desk-checking than the kiddies of today.</soapbox>
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"Desert Storm was a stirring victory for the forces of agression and
lawlessness."
-- former US Vice President Dan Quayle
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
Rory Hewitt
http://www.linkedin.com/in/roryhewitt
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-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.