Don,

One thing many RPG programmers don't understand is that C does not "protect
you from yourself".  

In RPG, if you say "Hit myself over the head with a very large hammer", RPG
will turn that into "Hit myself softly over the head with a small hammer so
that no damage is done".

In C, you will get exactly what you are asking for.  A Crushed skull!

If you always adhere to safe coding practices, your code will always be
safe.  But if you stop to think "is it worth being safe", you a) burn brain
cells for no reason and b) You'll spend a lot of time debugging weird things
because your unsafe code has made your test programs flakey.

Elvis pointed out some very good things.

JMHO after 15 years of C/C++ and pushing 30 years of RPG.

Bob

> -----Original Message-----
> 
> Elvis,
>    Thanks for the info.  And sorry for the sloppy
> code; I was trying to condense the orginal into the
> least amount of lines for testing.

<snip>



This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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 here. If you have questions about this, please contact [javascript protected email address].