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 12:31:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!grolier!not-for-mail Message-ID: <3C03F739.F4883829@club-internet.fr> Date: Tue, 27 Nov 2001 21:27:37 +0100 From: Philippe JUGLA X-Mailer: Mozilla 4.75 [fr] (Win98; U) X-Accept-Language: fr 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> <3C038072.BD405196@earthlink.net> Content-Type: multipart/mixed; boundary="------------71833EA2ABFE0C09076C2D6B" Organization: Club-Internet / T-Online France NNTP-Posting-Date: 27 Nov 2001 20:31:05 GMT NNTP-Posting-Host: 213.44.97.22 X-Trace: 1006893065 news.club-internet.fr 26358 213.44.97.22 X-Complaints-To: abuse@club-internet.fr Xref: archiver1.google.com comp.lang.ada:17062 Date: 2001-11-27T20:31:05+00:00 List-Id: Il s'agit d'un message multivolet au format MIME. --------------71833EA2ABFE0C09076C2D6B Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I find my way by defining a Stream_Array based on Asis.Data_Decomposition.Portable_Data. By that , it's allowed to use also simple dynamic type ! "Marc A. Criley" a �crit : > 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 --------------71833EA2ABFE0C09076C2D6B Content-Type: text/x-vcard; charset=us-ascii; name="jugla.vcf" Content-Transfer-Encoding: 7bit Content-Description: Carte pour Philippe JUGLA Content-Disposition: attachment; filename="jugla.vcf" begin:vcard n:JUGLA;Philippe x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:jugla@club-internet.fr fn:Philippe JUGLA end:vcard --------------71833EA2ABFE0C09076C2D6B--