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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c70bb16b3813e0fd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-21 05:17:05 PST Path: nntp.gmd.de!xlink.net!news.fhg.de!berlin.fhg.de!isst.fhg.de!hahn.informatik.hu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!prise.nz.dlr.de!news.dfn.de!swiss.ans.net!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: dewar@cs.nyu.edu (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Ada Portability... NOT! Date: 21 Nov 1994 08:17:05 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3aq6kh$984@gnat.cs.nyu.edu> References: <199411182104.PAA04854@mail.cs.utexas.edu> <3alalm$9di@gnat.cs.nyu.edu> <3aovl0$79m@news-2.csn.net> NNTP-Posting-Host: gnat.cs.nyu.edu Date: 1994-11-21T08:17:05-05:00 List-Id: Carlos, you wouldn't believe how many "bad" assignment "cases" I have seen in Ada code written by various people, but that does not make me decided that assignments are a bad thing. Properly handled, unchecked conversion is a powerful and important part of the Ada language, and is often a critical tool in writing portable code. By portable code, I mean code that can be ported across architectures. Typically this involves writing code that is from a formal point of view entirely implementation dependent, but which, based on rather detailed knowledge of multiple architectures, which of course few programmers posess, does in fact work. It is for example quite possible to defend against endianness differences using such approaches, but it is by no means easy.