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 X-Google-Thread: 103376,1fae32ec44d2d9cf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-27 05:00:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C038072.BD405196@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ASIS and record References: <3BFD7477.18ED30B9@club-internet.fr> <3BFE761F.62A00F77@earthlink.net> <3C02A3C1.C0B8BE69@club-internet.fr> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Tue, 27 Nov 2001 13:00:36 GMT NNTP-Posting-Host: 63.178.185.147 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1006866036 63.178.185.147 (Tue, 27 Nov 2001 05:00:36 PST) NNTP-Posting-Date: Tue, 27 Nov 2001 05:00:36 PST X-Received-Date: Tue, 27 Nov 2001 04:56:19 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:17037 Date: 2001-11-27T13:00:36+00:00 List-Id: I believe that about a year ago I ran into an apparent bug with ASIS for GNAT wherein certain types were being rejected as non-static that were in fact static. You may just need to work around this, or better, post a question to the ASIS-for-GNAT for mailing list. Marc Philippe JUGLA wrote: > > Thanks ! :-) > It works fine even on complex type but ... > It seems to be stuck on variant record type ... > It works only on static type ... :-( > > I'm wondering whether to bypass the protect in Asis (gnat) implementation > or not, to retreive the max ... > > Philippe > > "Marc A. Criley" a �crit : > > > Philippe JUGLA wrote: > > > > > > Hi, > > > Does anybody know how to get the size of a "type" through ASIS ? > > > thanks! > > > Philippe > > > > Look at the ASIS.Data_Decomposition annex, specifically the > > ASIS.Data_Decomposition.Size function having the ASIS.Type_Definition > > parameter. > > > > This works fine for me with ASIS-for-GNAT. > > > > As an aside, there is an ASIS mailing list, see > > http://www.acm.org/sigada/WG/asiswg/ for ASIS resources and information > > on how to subscribe. > > > > Marc A. Criley > > Senior Staff Engineer > > Quadrus Corporation > > www.quadruscorp.com