comp.lang.ada
 help / color / mirror / Atom feed
From: Eric Hughes <eric.eh9@gmail.com>
Subject: Re: default formal parameters in generic declarations
Date: Wed, 5 Mar 2008 13:41:44 -0800 (PST)
Date: 2008-03-05T13:41:44-08:00	[thread overview]
Message-ID: <c2581c0a-8681-4e3d-a4fa-0eb22b09c8d3@m36g2000hse.googlegroups.com> (raw)
In-Reply-To: u4pblz56k.fsf@stephe-leake.org

Eric Hughes <eric....@gmail.com> writes:
> The problem arises because, in general, an aspect _ought_ to
> have access to the internal state of the package for which it is
> acting as an aspect.

On Mar 5, 6:11 am, Stephen Leake <stephen_le...@stephe-leake.org>
wrote:
> Right. That's one reason I don't think aspect-based programming is all
> that useful.

I myself find the claims for the utility of AOP a bit overblown.  It
is, however, very good for observational applications: logging,
monitoring, defect correction, etc.  These are essentially "read only"
ways of using the internal state of an object.  In the general case,
getting anything correct seems hard enough, much less making anything
generically useful.  I remain

I should also say that one of the main reasons I did this was that
envisioned four different use cases: a zero-overhead case for ordinary
usage, a logging case for tracking down problems, an performance-
tuning case at the initial phase of deployment, and the unit testing
case.  Getting zero-overhead meant using an aspect that could compile
down into nothing when needed.

[re: circular generic references]
> Did you find a similar mechanism in Ada yet? Does limited with help?

I'm working on it.  I am certain to use "limited with", yes.  I
suspect that construct is necessary, but I cannot make the argument
one way or the other as yet.

Eric



      reply	other threads:[~2008-03-05 21:41 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-02 17:21 default formal parameters in generic declarations Eric Hughes
2008-03-02 17:42 ` Robert A Duff
2008-03-02 19:40   ` Eric Hughes
2008-03-03  9:17     ` Dmitry A. Kazakov
2008-03-03 11:15       ` Georg Bauhaus
2008-03-03 13:56         ` Dmitry A. Kazakov
2008-03-04 16:15       ` Eric Hughes
2008-03-04  3:43     ` Randy Brukardt
2008-03-04 16:51       ` Eric Hughes
2008-03-04 18:43         ` Randy Brukardt
2008-03-05 21:08           ` Eric Hughes
2008-03-06  9:32             ` Georg Bauhaus
2008-03-06 18:05               ` Eric Hughes
2008-03-06 22:41                 ` Ludovic Brenta
2008-03-07 10:51                   ` Georg Bauhaus
2008-03-07 20:09                     ` Eric Hughes
2008-03-03 12:42 ` Stephen Leake
2008-03-04 13:50   ` Dr. Adrian Wrigley
2008-03-04 16:56     ` Eric Hughes
2008-03-04 16:44   ` Eric Hughes
2008-03-05 13:11     ` Stephen Leake
2008-03-05 21:41       ` Eric Hughes [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