HP3000-L Archives

August 1999, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Tue, 31 Aug 1999 23:51:37 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
Tom wrote:
>
> I perform SECTIONs instead of PARAgraphs. The only fall-through I
> would use is a "trap-door" type of construct.

I fully concur.  This methodology tends to keep sections shorter and
more akin to pure procedures in other languages.  I further suggest
that GO TO's (prior to scope terminators almost impossible to avoid)
be restricted to the current section, or common error-handling code
(using a PERFORM IMAGE-ERROR to avoid a goto to an error trap is not
eliminating a GOTO but merely masking it).

Sections came into vogue for us back in the classic days when you
could segment your code using section level numbers.  It is no longer
such a strong concern other than promoting some code locality.

In more recent days I have advocated nested subprograms and global
variables.  This simplifies the complexity of using lengthy linkage
sections when using subprograms.

Jeff Kell <[log in to unmask]>

ATOM RSS1 RSS2