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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!g19g2000vbi.googlegroups.com!not-for-mail From: "patrick.gunia@googlemail.com" Newsgroups: comp.lang.ada Subject: Re: Ada Tagged Type-Operation assign? Date: Fri, 15 May 2009 07:53:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <003ad11c-1161-4867-9453-28eaf5663f04@r13g2000vbr.googlegroups.com> NNTP-Posting-Host: 78.34.66.221 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1242399218 4099 127.0.0.1 (15 May 2009 14:53:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 15 May 2009 14:53:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g19g2000vbi.googlegroups.com; posting-host=78.34.66.221; posting-account=D7TrwwoAAAAVyN71CASRiSp392RIjlsB User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (Windows NT 5.1; U; de) Presto/2.1.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5858 Date: 2009-05-15T07:53:37-07:00 List-Id: > I could imagine that the compiler-generated assign procedure > implements the run-time checks for assignment. These run-time checks > presumably exist only when the source or the target of the assignment > is of a class-wide type. Is that the case? No, neither source nor target are class-wide types. > For controlled types, there should be calls to Adjust and Finalize in > addition to (not instead of) assign, so my reasoning may be off-mark. > It would help if you could produce a short example. What=B4s irritating me is the fact, that all my controlled types which are of course also tagged-types, don=B4t call this operation. Regarding an example I have the problem, that I don=B4t 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=B4t 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=B4t think, that it would help, to show an example for such an assignment. Or am I getting your question for an example wrong?