From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f43e6,2c6139ce13be9980 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,2c6139ce13be9980 X-Google-Attributes: gid1108a1,public X-Google-Thread: fac41,2c6139ce13be9980 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: A DBC experience (was Re: Design by Contract) Date: 1997/08/27 Message-ID: #1/1 X-Deja-AN: 268641094 References: <33E9ADE9.4709@flash.net> <33F133D7.71AC@erols.com> <33F25933.7F83@flash.net> <33F30341.19F7DDE6@calfp.co.uk> <33F832E2.D5322D28@munich.netsurf.de> <33FA7611.4E16@flash.net> <33FB8974.97D4BA5D@munich.netsurf.de> <33FFA82E.54A8@flash.net> <34023A1F.41C67EA6@eiffel.com> <34023BC4.2781E494@eiffel.com> <34026DE7.7D07@pseserv3.fw.hac.com> <3402C404.56812AFB@XYZZYcalfp.com> X-NNTP-Posting-Host: pogner.demon.co.uk [158.152.70.98] Organization: At Home Newsgroups: comp.object,comp.software-eng,comp.lang.ada,comp.lang.eiffel Date: 1997-08-27T00:00:00+00:00 List-Id: Richie Bielak writes: > if (not_found) Thread.sleep (1000); /* half a second sleep and > then try again */ Interesting that the only comment in the program is in fact wrong .. Also, the code to manage the loop looks fearsomely complex, can't you 'return i' from inside a try block? -- Simon Wright Work Email: simon.j.wright@gecm.com GEC-Marconi Radar & Defence Systems Voice: +44(0)1705-701778 Command & Information Systems Divsion FAX: +44(0)1705-701800