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,7844279822ce7c28 X-Google-Attributes: gid103376,public From: Wolfgang Jeltsch Subject: Re: Newbie question : types , representation Date: 1999/08/23 Message-ID: <37C1AA76.14D14819@tu-cottbus.de>#1/1 X-Deja-AN: 516299505 Content-Transfer-Encoding: 7bit References: <37BFC251.601ADF8F@village.uunet.be> <7ppdon$j3p$1@nnrp1.deja.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@Maust.bbone.tu-cottbus.de X-Trace: Maust.bbone.tu-cottbus.de 935438923 290 141.43.23.97 (23 Aug 1999 20:08:43 GMT) Organization: UCS, TECHNICAL UNIVERSITY at COTTBUS (Germany) Mime-Version: 1.0 NNTP-Posting-Date: 23 Aug 1999 20:08:43 GMT Newsgroups: comp.lang.ada Date: 1999-08-23T20:08:43+00:00 List-Id: Robert Dewar wrote: > [...] > > Also I will need some kind of assignment to that modular type, > say aVar > > := 2#00000011#. This will assign the value 3 to aVar ? Is this > > guaranteed to have that bit pattern ? > > nope, and of course there is no such guarantee in C either > [...] Oops! I thought shifting on modular types would not work with the internal representation of the value but with its binary representation so that these operations would be platform independent. Is this really not the case? If not wouldn't this mean that the shift operations are useless if you want to write portable code? Wolfgang ************************************************************************ Wolfgang Jeltsch jeltsch@tu-cottbus.de http://www-user.tu-cottbus.de/~jeltsch ************************************************************************