Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!eecae!cps3xx!usenet
From: usenet@cps3xx.UUCP (Usenet file owner)
Newsgroups: comp.sys.amiga
Subject: Re: CygnusEdPro Bug
Message-ID: <4812@cps3xx.UUCP>
Date: 2 Oct 89 13:07:38 GMT
References: <8910012334.AA10980@jade.berkeley.edu>
Reply-To: porkka@frith.UUCP (Joe Porkka)
Organization: Michigan State University
Lines: 24

-In article <8910012334.AA10980@jade.berkeley.edu> GORRIEDE@UREGINA1.BITNET (Dennis Robert Gorrie) writes:
->>>Sorry if everyone is already aware of this bug.   The problem is, that if
->>>you have two files, with the SAME NAME, in the SAME DIRECTORY, and then try
->>>to use the CygnusEd file requestor to open a file (get a dir list) THEN
->>>CygnusEd will promptly hang.
->>>
-
->others will still work.  I am curious as to why some still work and others
->do not.

Two possibilities. #1 is luck, #2 is programming style.

Not much to say for #1. For #2, it is a matter of how "defensively"
a programmer codes.
If the programmer assumes that it "can't happen", then when
it does happen, you revert to #1.
I try to program defensively to avoid random happenings when
things go wrong. This helps a lot in writting the program, since
I will get debug messages out proclaiming an error in my
judgement. It also helps a completed program operate more
reliably, even if there are bugs the program can
avoid crashing by checking for impossible conditions, and (at worst)
exiting gracefully.
REAL NAME: Joe Porkka   porkka@frith.egr.msu.edu