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.3 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,582dff0b3f065a52 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,582dff0b3f065a52 X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 2001-08-26 19:59:28 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.rdc1.bc.home.com.POSTED!not-for-mail From: kaz@ashi.footprints.net (Kaz Kylheku) Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Subject: Re: Subtle Bugs, kudos Ada (was How Ada ...Red Code ...) References: <3B6555ED.9B0B0420@sneakemail.com> <87n15lxzzv.fsf@deneb.enyo.de> <3B672322.B5EA1B66@home.com> <4a885870.0108112341.7ce02ac0@posting.google.com> <3B834E5D.B0D26AB1@adaworks.com> <9lvsic$bet9s$1@ID-9852.news.dfncis.de> <9m0193$grs$1@bird.wu-wien.ac.at> <3B83F042.4CFB073D@home.com> <3B8462C8.5596C089@yahoo.com> <30Yh7.54069$l7.6430776@typhoon.nyc.rr.com> <3B888631.204F@mindspring.com> Organization: Psycho-Neurotic Institute for the Very, Very Nervous Reply-To: kaz@ashi.footprints.net User-Agent: slrn/0.9.6.3 (Linux) Message-ID: Date: Mon, 27 Aug 2001 02:59:27 GMT NNTP-Posting-Host: 24.68.85.82 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.bc.home.com 998881167 24.68.85.82 (Sun, 26 Aug 2001 19:59:27 PDT) NNTP-Posting-Date: Sun, 26 Aug 2001 19:59:27 PDT Xref: archiver1.google.com comp.lang.ada:12446 comp.lang.c:77000 comp.lang.c++:85847 Date: 2001-08-27T02:59:27+00:00 List-Id: In article , Igor Tandetnik wrote: > >The question is not what happens to high-order bits that are introduced by >the shift - it is clear that the standards make no guarantee about it and >leave it to implementation. The question is what happens to the bits that >were there before the shift - do the standards guarantee that all of the >original bits (except low-order ones shifted away) are preserved albeit >shifted from their original positions? ``Implementation-defined'' refers to the entire resulting value. An implementation could document and implement the behavior ``whenever a signed integral value with a 1 in its sign bit is shifted right, the resulting value is 42''.