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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,577c9f9c0cdd76d X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Confusing language, was Re: Help help.. please.i am totaly new in ada programing Date: 1999/11/11 Message-ID: <80djd2$48o$1@nnrp1.deja.com>#1/1 X-Deja-AN: 547164178 References: <7vqgs2$lcc$1@nnrp1.deja.com> <38233108.F3540F0@ebox.tninet.se> <806716$i6c2@ftp.kvaerner.com> <807109$8m0$1@nnrp1.deja.com> <38270DC7.86553BB1@pwfl.com> <38285C60.B3E2D2BC@pwfl.com> <809u91$3ik$1@nntp1.atl.mindspring.net> X-Http-Proxy: 1.0 x24.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Nov 11 05:15:17 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-11-11T00:00:00+00:00 List-Id: In article , Robert A Duff wrote: > Still, you (and Robert Dewar) now blame it on deficiencies of > COBOL, which is quite fair. No, we did not say it was a deficiency, to make such a claim indicates a lack of knowledge of COBOL and how it is used. A fundamental principle of COBOL, not present in other languages, is that data is represented the same externally and internally and is fully portable. This leads directly to the character model of data. This is not a deficiency, just a design decision with advantages and disadvantages. But once you have data in this form, it definitely is the case that 4-digit years will take up more expensive core memory than 2-digit years. Note as a contrast Ada's view of how to store dates, which is completely hidden from the programmer. If you instantiate sequential I/O for a type with Calendar.Time in it, you get a tape full of highly implementation dependent data, something that one avoids like the plague in the COBOL world. The importance of data representation consistency in the COBOL world is so high that no compiler is viable unless it is bit compatible in data representation with standard IBM compilers, including the ability to use EBCDIC to represent character data. COBOL goes much further than Ada in worrying about *data* compatibility. For example, the standard stream data in Ada is nowhere near being portable! Sent via Deja.com http://www.deja.com/ Before you buy.