Re: Code problems with Perform Thru Exit causes fall through




Richard <riplin@xxxxxxxxxxxx> wrote in message
news:1185584321.018963.77560@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jul 28, 12:03 pm, "tlmfru" <la...@xxxxxxx> wrote:
Evrybody has a verb or two that they dislike. Who cares???? Does it
work?
Is it easy to maintain?

SECTIONs do have their uses, for example segmentation. As I pointed
out above I dislike things that can easily lead to errors and that the
compiler won't tell you about. In fact I would use that as a
definition of what is _not_ 'easy to maintain' and _not_ 'perfectly
effective'.

The compiler can't tell if you should have used a minus instead of a plus
sign. Better ban it!


For example (as above) the simple absence of one SECTION word on a
label can cause a drop thru error that can be difficult to locate and
which the compiler gives no warning of.

The only purpose for using PERFORMed SECTIONs instead of having all
the labels as paragraphs is to allow the use of exit paragraphs and
the associated GO TOs. Thus this style suffers the errors in my other
messages of this topic, ones that the compiler cannot find for you.

Perhaps you find that these errors are simply a part of 'normal
programming' and find them easy, after all what would you do for the
rest of the week if they did not occur.


I don't find "these errors" happening at all. I have heard of the concept
called "testing" and use it all the time. I find that "testing" locates all
these errors. I'm a big advocate of "testing". I suppose you could be
right, though: if I didn't use "testing" then I would have a lot more to do
during the week. (FWIW, I don't use PERFORMED sections).

All sarcasm aside, you are making the mistake of assuming that since you do
things one way, that it is the only way to do it. Perhaps you could specify
what is acceptable program lifetime to qualify as the right way to do
things: I have several systems which are now over 15 years old and running
successfully - which accepted Y2K without changes - which have not been
changed at all except for spec. changes - different data formats, changed
calculations, a new report, etc. These systems use all sorts of syntax
which you would undoubtedly condemn. Your privelege. They work. Enough
said.

Does it follow the installation standards?
Discussion over!

Yes, that is often used to protect poor programming styles.



Also used to provoke thoughtless responses. D'you hold that installation
standards are automatically wrong? Or only when you disagree with them?

PL




.



Relevant Pages

  • Re: [EGN] Numerical Accuracy
    ... The advice worked because in fact the Microsoft compiler had a bug. ... The capabilities of the optimizer are not so ... The language standard itself says ... of "programming" as a nonprofession. ...
    (comp.programming)
  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... and just hone in on the stuff related to programming and this newsroup] ... moron that was taken from optimization which does hoist when to do so ... compiler design and optimization, including my 1976 text in graduate ... loop in a language in which the designers messed up, ...
    (comp.programming)
  • Re: Javas performance far better that optimized C++
    ... The compiler is extremely stupid. ... no memory leaks are guaranteed. ... However I have GC in my .NET programming. ... "C.9.1 Automatic Garbage Collection ...
    (comp.lang.cpp)
  • Re: Aspiring highest-order programmer
    ... book", Sherman's Programming and Coding for Digital Computers, was ... an IBM 7094 running IBSYS as an OS and with a Fortran compiler. ... Thus today I am confident that computer science students learn "all ... > long, very long, and not exactly focused on NP completeness). ...
    (comp.programming)
  • Re: Multi Threading Options
    ... An idea I tried was to build in an object-based file system back around 1977. ... and had no interest at all in the underlying byte stream sent to a compiler. ... something seriously missing in modern programming environments. ... but in a truly modern programming environment these would ...
    (microsoft.public.vc.mfc)