comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Ada Tagged Type-Operation assign?
Date: Fri, 15 May 2009 14:16:35 -0400
Date: 2009-05-15T14:16:35-04:00	[thread overview]
Message-ID: <wccmy9eut8c.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: fcf26d81-22ef-4f2c-a12a-cbb596682fa7@g19g2000vbi.googlegroups.com

"patrick.gunia@googlemail.com" <patrick.gunia@googlemail.com> writes:

> What�s irritating me is the fact, that all my controlled types which
> are of course also tagged-types, don�t call this operation. Regarding
> an example I have the problem, that I don�t really know, where the
> operation is called, because VTune only tells me, that there is a big
> number of calls to this function, but it can�t tell me, where these
> calls take place. Of course I assume that the operation gets called,
> when I assign values to instances of my tagged-types, but I don�t
> think, that it would help, to show an example for such an assignment.
> Or am I getting your question for an example wrong?

Assignment is quite expensive for controlled types (or types containing
controlled types, etc).  Try out to the -gnatD and/or -gnatG switches
to see what's going on under the covers.

Assignment of tagged types is not particularly expensive, if not
controlled.

- Bob



  reply	other threads:[~2009-05-15 18:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-15 13:57 Ada Tagged Type-Operation assign? patrick.gunia
2009-05-15 14:30 ` Ludovic Brenta
2009-05-15 14:53   ` patrick.gunia
2009-05-15 18:16     ` Robert A Duff [this message]
2009-05-16 13:32       ` patrick.gunia
2009-05-16 16:35         ` patrick.gunia
2009-05-16 16:37         ` patrick.gunia
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox