comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Should I use Tagged Records to be able to use Object Notation?
Date: Fri, 29 Nov 2013 09:58:50 -0700
Date: 2013-11-29T09:58:50-07:00	[thread overview]
Message-ID: <l7ah4a$j1q$1@dont-email.me> (raw)
In-Reply-To: <HOednUKzvYoQ0AXPnZ2dnUVZ_tudnZ2d@giganews.com>

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

      reply	other threads:[~2013-11-29 16:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-29  8:17 Should I use Tagged Records to be able to use Object Notation? FritzVonBraun
2013-11-29 16:58 ` Jeffrey Carter [this message]
replies disabled

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