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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5347e7d1cde09e09 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-26 03:40:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Perform "or" on a scalar type? Date: 26 Feb 2002 05:40:46 -0600 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1014723648 2746 192.135.80.34 (26 Feb 2002 11:40:48 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Tue, 26 Feb 2002 11:40:48 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:20452 Date: 2002-02-26T05:40:46-06:00 List-Id: In article , "Verner" writes: > What is the easyiest way to persorm an "or" operation on a Unsigned_16 and a > scalar type? Perform conversions so they have the same type. A hallmark of Ada is the notion that conversions are explicit where in other languages they might be implicit. The attitude with Ada is that it is not sufficient for you to understand what you want -- you must specify it to the compiler.