comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: C++ Envy
Date: Tue, 24 Jan 1995 18:56:58 GMT
Date: 1995-01-24T18:56:58+00:00	[thread overview]
Message-ID: <D2xBAz.9pG@world.std.com> (raw)
In-Reply-To: 3g0evo$1h2@borage.csv.warwick.ac.uk

In article <3g0evo$1h2@borage.csv.warwick.ac.uk>,
Jules <csusb@csv.warwick.ac.uk> wrote:
>The original point of this thread was that you don't actually have to change
>the header file itself to change its meaning in C/C++.

True, but this seems like a minor point to me.  No language can protect
against blatantly irresponsible coding tricks.  Languages should instead
try to prevent problems that happen by accident, as most bugs do.  How
could you accidentally use the trick being discussed?

Anyway, the same is true of Ada: you don't have to change an Ada library
package in order to access its private data, and thereby change its
meaning.  You can, for example, use Unchecked_Conversion for that
purpose.  Or, you can simply write a child unit.  But neither of those
can be done by accident.

- Bob



  reply	other threads:[~1995-01-24 18:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-01-12  9:39 C++ Envy R.A.L Williams
     [not found] ` <3f9bha$r16@gnat.cs.nyu.edu>
     [not found]   ` <3fcjp5$b0v@cronkite.seas.gwu.edu>
1995-01-16 18:48     ` Robert Dewar
     [not found]     ` <3fe433$evq@nonews.col.hp.com>
     [not found]       ` <3fj4oa$9a8@cronkite.seas.gwu.edu>
1995-01-20  5:30         ` Jay M Martin
1995-01-21 21:13           ` David O'Brien
1995-01-22  6:39             ` Jay M Martin
1995-01-23 14:37               ` Jules
1995-01-24 18:56                 ` Robert A Duff [this message]
1995-01-25 15:19                   ` Robert I. Eachus
1995-01-22 21:18             ` Robert Dewar
1995-01-23 22:03               ` Charles H. Sampson
1995-01-25  6:38               ` David O'Brien
1995-01-25 15:49                 ` Jay Martin
1995-01-25 23:47                   ` Jay Martin
1995-01-28 18:52                 ` Chris Warack <sys mgr>
1995-01-30 16:44                   ` Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
1995-01-05 17:12 SBS Engineering
1995-01-06 17:21 ` Huayong YANG
1995-01-09 16:13   ` Cyrille Comar
1995-01-10  4:07   ` Jay Martin
replies disabled

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