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