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: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public From: robert_dewar@my-dejanews.com Subject: Re: Ada vs C++ vs Java Date: 1999/01/16 Message-ID: <77qfpj$lvm$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 433346049 References: <369C1F31.AE5AF7EF@concentric.net> <369CBD05.79D0@telusplanet.net> <369CBDA8.D3673C68@pwfl.com> <77np3q$e6h$1@nnrp1.dejanews.com> <36A045FF.EBA4370@easystreet.com> X-Http-Proxy: 1.0 x6.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Sat Jan 16 16:46:44 1999 GMT Newsgroups: comp.lang.ada,comp.lang.c++,comp.vxworks,comp.lang.java X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-01-16T00:00:00+00:00 List-Id: In article , mtobler@no-spam-ibm.net (Michael J. Tobler) wrote: > "Mis-compile"? Or didnt allow it? If the compiler didnt > accept multiple if-else construct, then the compiler > writer wasnt doing thier job - they are making the > assumption that a programmer "wont do this". This, in my > book, is unacceptable. Well yes, I think everyone agrees with this in practice, and I certainly interpreted the post to mean what it said (miscompile). However, it is worth noting that almost all real compilers do have capacity limits on various things, and I suppose it is not inconceivable that a COBOL compiler would have a smaller capacity limit on nested if's -- certainly the judgment on where to set capacity limits is based on typical usage patterns. Note that Realia COBOL is one of the few compilers (the only one I know of) that have NO limits of ANY KIND. If you have enough disk space, then Realia COBOL will compile any program. Note that typically COBOL compilers have much *larger* limits on the maximum size of programs. Whereas typical C style is to have many small files, single files of 100,000 or more lines are not unknown in the COBOL world (not very good practice certainly, but a compiler writer is in the business of catering to actual practice, not idealized practice, as Michael notes. Of course there is NEVER any excuse for miscompiling a construct that the compiler accepts! -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own