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 Newsgroups: comp.lang.ada Subject: Re: Zero length Objects References: From: Brian May X-Home-Page: http://snoopy.apana.org.au/~bam/ Date: Thu, 01 Jul 2004 10:47:00 +1000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:0+V4CoAsdDR6tbBBCNgRVfWc2UM= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: dsl-202-173-153-89.vic.westnet.com.au X-Trace: news.melbourne.pipenetworks.com 1088642820 202.173.153.89 (1 Jul 2004 10:47:00 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news1.google.com!news.glorb.com!news.moat.net!border1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!news.mel.connect.com.au!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:2014 Date: 2004-07-01T10:47:00+10:00 List-Id: >>>>> "Frank" == Frank J Lhota writes: Frank> No object is really of zero length. The reason is that Frank> every object should have a unique address. Therefore, most Frank> Ada compilers will allocate at least one storage element to Frank> each object, in order to insure that if we declare Frank> A, B : Empty_Type; Frank> then A and B do not both refer to the same location. Is there any reason every object needs to have a unique address? I thought it would only be important for aliased objects or objects allocated on the heap, as it isn't possible (AFAIK) to get the address otherwise. Not that I care either way ;-). -- Brian May