Dangerous!

Jay R. Ashworth jra at baylink.com
Wed May 26 10:33:39 PDT 2004


On Thu, Jan 22, 2004 at 02:36:23PM -0500, Tom Pancero wrote:
> Kenneth Brody wrote:
> >"Jay R. Ashworth" wrote:
> >[...]
> >>Yeah; I already dealt with that special case when John pointed it out,
> >>before lunch. *Unlabeled* IF's with no (executable) THEN are almost
> >>certainly an error, though.
> >
> >An unlabeled condition with no executable code is basically a no-op.

> Ok....How about;
> 
> You have a rather complicated test condition, that is going to be examined
> several times, in various places in the processing table.
> 
> You use the LABEL to avoid having to retype the 'IF' line ad-infinitum
> 
> EX:
> 
> DOPRINT IF: (@sn ne "") and (norsdorf lt fiznic) and (tom gt fred)
> THEN:
> {code}
> {code}
> IF: DOPRINT
> THEN: show .............
> {code}
> {code}
> IF:DOPRINT
> THEN: display 8
> {more code}
> {even more code}
> IF: DOPRINT
> THEN: show ............
> 
> Powerful technique when used carefully!

As well we know.  Ken, and I, were both concensing on *unlabeled* IF's
which have no THEN.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Member of the Technical Staff     Baylink                             RFC 2100
The Suncoast Freenet         The Things I Think
Tampa Bay, Florida        http://baylink.pitas.com             +1 727 647 1274

        Come see Linux Gazette in our new home: www.linuxgazette.net!


More information about the Filepro-list mailing list