* ASIS and record
@ 2001-11-22 21:56 Philippe JUGLA
2001-11-23 17:15 ` Marc A. Criley
0 siblings, 1 reply; 5+ messages in thread
From: Philippe JUGLA @ 2001-11-22 21:56 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 86 bytes --]
Hi,
Does anybody know how to get the size of a "type" through ASIS ?
thanks!
Philippe
[-- Attachment #2: Carte pour Philippe JUGLA --]
[-- Type: text/x-vcard, Size: 140 bytes --]
begin:vcard
n:JUGLA;Philippe
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:jugla@club-internet.fr
fn:Philippe JUGLA
end:vcard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ASIS and record
2001-11-22 21:56 ASIS and record Philippe JUGLA
@ 2001-11-23 17:15 ` Marc A. Criley
2001-11-26 20:19 ` Philippe JUGLA
0 siblings, 1 reply; 5+ messages in thread
From: Marc A. Criley @ 2001-11-23 17:15 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ASIS and record
2001-11-23 17:15 ` Marc A. Criley
@ 2001-11-26 20:19 ` Philippe JUGLA
2001-11-27 13:00 ` Marc A. Criley
0 siblings, 1 reply; 5+ messages in thread
From: Philippe JUGLA @ 2001-11-26 20:19 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 852 bytes --]
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
[-- Attachment #2: Carte pour Philippe JUGLA --]
[-- Type: text/x-vcard, Size: 140 bytes --]
begin:vcard
n:JUGLA;Philippe
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:jugla@club-internet.fr
fn:Philippe JUGLA
end:vcard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ASIS and record
2001-11-26 20:19 ` Philippe JUGLA
@ 2001-11-27 13:00 ` Marc A. Criley
2001-11-27 20:27 ` Philippe JUGLA
0 siblings, 1 reply; 5+ messages in thread
From: Marc A. Criley @ 2001-11-27 13:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ASIS and record
2001-11-27 13:00 ` Marc A. Criley
@ 2001-11-27 20:27 ` Philippe JUGLA
0 siblings, 0 replies; 5+ messages in thread
From: Philippe JUGLA @ 2001-11-27 20:27 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 1469 bytes --]
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
[-- Attachment #2: Carte pour Philippe JUGLA --]
[-- Type: text/x-vcard, Size: 140 bytes --]
begin:vcard
n:JUGLA;Philippe
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:jugla@club-internet.fr
fn:Philippe JUGLA
end:vcard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-11-27 20:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-22 21:56 ASIS and record Philippe JUGLA
2001-11-23 17:15 ` Marc A. Criley
2001-11-26 20:19 ` Philippe JUGLA
2001-11-27 13:00 ` Marc A. Criley
2001-11-27 20:27 ` Philippe JUGLA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox