Me again.

I just acquired a new client and found an interesting programming style that
for the life of me I cannot understand why anyone in their right mind would do
such a thing.

Not on all programs but it seems that for programs that open less than 4-5
files, the programmer continues the logic in the THEN section of the open
statement. Example:

OPEN FILE1 TO F.FILE1 THEN
    OPEN FILE2 TO F.FILE2 THEN
        OPEN FILE3 TO F.FILE3 THEN
            EOF=0
            LOOP READNEXT ID ELSE EOF=1 UNTIL EOF DO
            PROCESS, PROCESS, PROCESS
            REPEAT
        END ELSE PRINT "CAN'T OPEN FILE3"
    END ELSE PRINT "CAN'T OPEN FILE2"
END ELSE PRINT "CAN'T OPEN FILE1"
END

There could be 200-300 lines between the OPEN for FILE3 and its error message.

Now I know that Pick is pretty loose and forgiving. But what could be the
sanity behind this.

Just curious.

Thanks
Mark Johnson
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to