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,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-31 16:51:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: 31 May 2003 19:51:22 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED46D81.FF62C34F@0.0> <3ED46E07.4340CABC@0.0> <3ED4F3FD.A0EF7079@alfred-hilscher.de> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1054425082 6143 199.172.62.241 (31 May 2003 23:51:22 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 31 May 2003 23:51:22 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:38254 Date: 2003-05-31T19:51:22-04:00 List-Id: "John R. Strohm" writes: > Should we allow, or not allow, > > J := idem; > > Why or why not? What are the semantics? Should we allow: J := J; ? The correct answer is "Who cares?". ;-) In any case there doesn't seem to be any big semantic difficulty here. > In particular, consider: > > DEVICE_DATA_REGISTER : BYTE; > for DEVICE_DATA_REGISTER use at 16#4000_00F0#; > ... > DEVICE_DATA_REGISTER := 16#40#; > DEVICE_DATA_REGISTER := idem; > DEVICE_DATA_REGISTER := idem + 1; > > How many times should DEVICE_DATA_REGISTER be *read* by the above code > fragment? Why? Well, there's no pragma Atomic or Volatile, so... If there were, I would say "twice". - Bob