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-Thread: 103376,85c4b961f840b5ab X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!news-out.cwix.com!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Zero length Objects Date: 1 Jul 2004 06:25:36 -0500 Organization: LJK Software Message-ID: References: <2kh2leF2ct4hU1@uni-berlin.de> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1088681070 21925 192.135.80.34 (1 Jul 2004 11:24:30 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Thu, 1 Jul 2004 11:24:30 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:2022 Date: 2004-07-01T06:25:36-05:00 List-Id: In article <2kh2leF2ct4hU1@uni-berlin.de>, "Nick Roberts" writes: > For the curious, the mechanism I suggested was that the compiler 'invents' > unique encodings for access values that reference zero-size objects. An > invented encoding can be any value that can be stored in an object of the > access type which is guaranteed never to be the same as any valid address > (or other invented value in scope), assuming the typical mechanism that an > access value which references a nonzero-size object is simply its address. I don't understand how one can guarantee such non-conflicting encodings are possible on all architectures, particular when the compiler supports operating system programming in Ada.