comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: array of operations
Date: Wed, 11 Sep 2002 18:43:29 -0500
Date: 2002-09-11T18:43:29-05:00	[thread overview]
Message-ID: <unvlhis8u8s9e5@corp.supernews.com> (raw)
In-Reply-To: aln1n2$sbq$1@news.iucc.ac.il

Ehud Lamm wrote in message ...
>
>"Ole-Hjalmar Kristensen" <oleh@vlinux.voxelvision.no> wrote in message
>news:7vfzwh9dkl.fsf@vlinux.voxelvision.no...
>
>> Or a pointer to an object and let the dispatching mechanism implement
>> the function pointer behind the scenes.
>
>This indeed another useful technique. However, there are some small
gotchas.
>You can usually use singleton objects, but in many cases you will need
>access values so you have to make them "aliased."


Not true. Since it is always OK to take 'Unchecked_Access of a parameter
of a tagged type in Ada 95, you generally do not need to explicitly use
"aliased". Claw uses this extensively to provide an interface which is
mostly without access types, yet internally everything is linked
together. (Claw uses finalization to prevent dangling pointers in this
case).

There are very few 'aliased' tagged objects in the Claw sample programs
(3 in 74 samples).

                  Randy Brukardt.






  reply	other threads:[~2002-09-11 23:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-10 13:45 array of operations marco
2002-09-10 15:28 ` Mark Biggar
2002-09-10 17:09   ` Ehud Lamm
2002-09-11  7:43     ` Ole-Hjalmar Kristensen
2002-09-11 10:10       ` Ehud Lamm
2002-09-11 23:43         ` Randy Brukardt [this message]
2002-09-12  9:01           ` Ehud Lamm
2002-09-12 14:32             ` Mark Biggar
2002-09-12 16:15               ` John McCabe
2002-09-12 16:37                 ` David C. Hoos
2002-09-12 17:45                   ` John McCabe
2002-09-11  2:17 ` Ted Dennison
replies disabled

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