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: 103376,577c9f9c0cdd76d X-Google-Attributes: gid103376,public From: "Robert I. Eachus" Subject: Re: Confusing language, was Re: Help help.. please.i am totaly new in ada programing Date: 1999/11/12 Message-ID: <382C40FA.248E6840@mitre.org>#1/1 X-Deja-AN: 547797387 Content-Transfer-Encoding: 7bit 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> <80djd2$48o$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.mitre.org X-Trace: top.mitre.org 942423957 684 129.83.41.77 (12 Nov 1999 16:25:57 GMT) Organization: The MITRE Corporation Mime-Version: 1.0 NNTP-Posting-Date: 12 Nov 1999 16:25:57 GMT Newsgroups: comp.lang.ada Date: 1999-11-12T16:25:57+00:00 List-Id: Robert Dewar wrote: > 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... Correct, but in Ada 95 the "right" way to create implementation independent files is to use Streams. If the vendor overrides 'Read, 'Write, 'Input and 'Output for Ada.Calendar.Time, which the vendor is free to do, then such times in files should be portable between programs running on different system architectures. It would be nice if the vendors could get together on a single standard, but I don't think it can be added to the Ada standard, since streams are not required to be (8-bit) byte oriented. > For example, the standard stream data in Ada is > nowhere near being portable! I think that we need to bite the bullet, and not try to use streams for too many things. Streams should value portability over speed, while direct and sequential files should be used where compatibility is not an issue. Or maybe we need multiple predefined stream types with different characteristics. But then there would have to be a way to query the stream type. -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...