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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fee8802cc3d8334d X-Google-Attributes: gid103376,public X-Google-Thread: 10a146,fee8802cc3d8334d X-Google-Attributes: gid10a146,public From: Marin David Condic Subject: Re: Ada and Java. different behaviour. casting long to int problem. Date: 1999/06/23 Message-ID: <37713F7E.752E53A8@pwfl.com>#1/1 X-Deja-AN: 493073226 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: <7jt2c0$vrb@drn.newsguy.com> <7k57vb$1ipf@drn.newsguy.com> <3766650F.705125B7@pwfl.com> <7k64t7$igo$1@its.hooked.net> <7k689a$ci2@drn.newsguy.com> <3766C842.E1EAB60A@pwfl.com> <7kp3f2$m9i$1@nnrp1.deja.com> <3770F79C.42132886@pwfl.com> <930160826.778.37@news.remarQ.com> Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: diespammer@pwfl.com Newsgroups: comp.lang.ada,comp.lang.java.programmer Date: 1999-06-23T00:00:00+00:00 List-Id: Vladimir Olensky wrote: > I think people that have anything to do with control systems design would > fully support that also. > Saturation is fundamental nature phenomena. So if we had language feature > that support such behavior it would make that language more fundamental. > I'd like to see how it might be added to the language in an efficient way - preferably without having to get it as a customization of the compiler. We've typically pulled stunts with assembly language, but that isn't very portable nor does it lead to a "common" understanding of where such types ought to live or what sort of standard behavior they should have. It would be nice to see a compiler vendor provide it as an extension to the language just to see how well it would be received & used. I've heard tell of some processor chips providing support for saturated arithmetic mostly because they have found it useful for graphics applications. Maybe more hardware support will lead to more compiler support? MDC -- Marin David Condic Real Time & Embedded Systems, Propulsion Systems Analysis United Technologies, Pratt & Whitney, Large Military Engines M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600 ***To reply, remove "bogon" from the domain name.*** Visit my web page at: http://www.mcondic.com/