comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Re: Ripple effect
Date: Fri, 25 Aug 2006 09:03:04 +0200
Date: 2006-08-25T09:03:04+02:00	[thread overview]
Message-ID: <ecm7b8$cg4$1@sunnews.cern.ch> (raw)
In-Reply-To: <CMqHg.151544$1i1.36729@attbi_s72>

Jeffrey R. Carter wrote:

>> Why?
>> If you remove some use clause that might affect the visibility of some 
>> primitive operation, then it will also remove the whole type that is 
>> involved in a given expression, rendering the whole as illegal.
>>
>> Could you provide a short example of this Ripple effect?
> 
> No. I'm simply aware that STT cites direct operator visibility as 
> potentially giving rise to the Ripple effect in the Ada FAQ
> 
> http://www.adapower.com/index.php?Command=Class&ClassID=FAQ&CID=358

Yes, I've seen it already. Still, something is missing.

As a C++ programmer, I like the idea of doing this:

std::cout << "Hello";

without writing using namespace std - the stream insertion operator will 
be found in the appropriate namespace (std in this case) and it's enough 
to qualify std::cout to make it happen. Without this feature, I would 
need to write this:

std::operator<<(std::cout, "Hello");


Now, adding or removing #include directives might change one legal C++ 
program into another legal program, but this is due to implicit 
conversions - without them I don't see any way for this to happen.

That's why the assertion that such effect is possible in Ada strikes me 
a little bit.
Waiting for examples.


-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



  reply	other threads:[~2006-08-25  7:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-23 22:29 Ripple effect Jeffrey R. Carter
2006-08-24  9:21 ` Maciej Sobczak
2006-08-24 23:39   ` Jeffrey R. Carter
2006-08-25  7:03     ` Maciej Sobczak [this message]
2006-08-24 18:22 ` Adam Beneschan
2006-08-24 23:40   ` Jeffrey R. Carter
2006-09-04 13:52 ` Robert A Duff
2006-09-04 15:15   ` Jeffrey R. Carter
2006-09-04 18:06     ` Robert A Duff
2006-09-05  2:33       ` Jeffrey R. Carter
2006-09-05  7:23         ` Dmitry A. Kazakov
2006-09-05 16:28           ` Robert A Duff
2006-09-05 16:23         ` Robert A Duff
2006-09-05 21:36           ` Jeffrey R. Carter
2006-09-07 18:18             ` Robert A Duff
2006-09-08 22:02               ` Jeffrey R. Carter
2006-09-06  0:10           ` Randy Brukardt
2006-09-07 18:30             ` Robert A Duff
2006-09-07 21:21               ` Simon Wright
2006-09-08  2:08               ` Randy Brukardt
2006-09-09 14:55             ` adaworks
2006-09-05 23:52         ` Randy Brukardt
2006-09-07 19:09   ` Adam Beneschan
2006-09-07 19:21     ` Ed Falis
2006-09-07 19:46       ` Larry Kilgallen
2006-09-08 13:06         ` Ed Falis
replies disabled

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