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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Should I use Tagged Records to be able to use Object Notation? Date: Fri, 29 Nov 2013 09:58:50 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 29 Nov 2013 16:58:51 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="4d5ae4e50b2c862535d69240f4d04907"; logging-data="19514"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZXTPbxkd5AINwFGh7/HsyCr2/YslESxo=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: Cancel-Lock: sha1:v92gFfRAYqdzxRYh/yk1scgWz+s= Xref: news.eternal-september.org comp.lang.ada:17821 Date: 2013-11-29T09:58:50-07:00 List-Id: On 11/29/2013 01:17 AM, FritzVonBraun wrote: > I was wondering if it is a usual practice to make a record tagged so that it is > possible to call procedures as object.procedure instead of having to write > package.procedure( object ). > I know that there is a slight overhead involved with the tag but it would > certainly be easier. Is this a common practice or not? It does seem to be common. You should also remember that tagged types are always passed by reference, which may not be the case if the type is not tagged. -- Jeff Carter "We use a large, vibrating egg." Annie Hall 44