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,39573b6047875874 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-21 11:42:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!newsfeed.stueberl.de!news-peer.gradwell.net!not-for-mail Newsgroups: comp.lang.ada From: porton@ex-code.com (Victor Porton) Date: Tue, 21 Jan 2003 23:50:42 +0500 References: <3e2cf0e4$0$33922$bed64819@news.gradwell.net> Organization: Extreme Code Software (http://ex-code.com) Subject: Re: Unchecked_Conversion and alignment Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Content-Type: text/plain; charset=us-ascii X-URL: http://www.ex-code.com/ Message-ID: <3e2da295$0$33922$bed64819@news.gradwell.net> NNTP-Posting-Date: 21 Jan 2003 19:42:13 GMT NNTP-Posting-Host: 195.149.39.13 X-Trace: 1043178133 news.gradwell.net 33922 mail2news/195.149.39.13 X-Complaints-To: news-abuse@gradwell.net Xref: archiver1.google.com comp.lang.ada:33321 Date: 2003-01-21T19:42:13+00:00 List-Id: In article , Stephen Leake writes: > porton@ex-code.com (Victor Porton) writes: > >> 13.9.5 requests "S'Alignment = Target'Alignment" (for source and target >> of Unchecked_Conversion). >> >> So, it appears impossible to keep several objects of arbitrary types in >> an array of an array of System.Storage_Elements.Storage_Array (as these >> alignments are not necessarily equal). >> >> To bad! It would be right to lessen the Standard request to only that >> S'Address mod Target'Alignment = 0. > > You can probably get what you really want via > Address_To_Access_Conversions. Even worse. Basically Standard warrants getting correct access only from these addresses which we got from an access. > It would help if you said why you want to keep object in arrays of > Storage_Elements. I make my own storage pool which uses the standard pool. I allocate by "new Storage_Array(1..XXX)".