comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-dejanews.com>
Subject: Re: pointers & OOP
Date: 1999/05/05
Date: 1999-05-05T00:00:00+00:00	[thread overview]
Message-ID: <7gq27t$vnd$1@nnrp1.deja.com> (raw)
In-Reply-To: MVsZ8DAT0AM3EwF3@jr-and-assoc.demon.co.uk

In article <MVsZ8DAT0AM3EwF3@jr-and-assoc.demon.co.uk>,
  John Robinson <john@jr-and-assoc.demon.co.uk> wrote:

> Hence, a mapping from UML to Ada 95 should always map a single UML class
> box onto a package containing a single tagged type.  Although the
> language allows multiple tagged types to be declared in a single package
> it makes no sense whatsoever to do so.

This is very wrong. In fact I would say that you have essentially completely
missed one of the most powerful features of Ada, namely that the packages
and tagged types need NOT be in 1-1 correspondence. You sound like a C++
programmer trying to squeeze the paradigms you are used to into Ada 95 in
an ugly and very unnatural way. I think you should look at a bunch of Ada
code to get the feeling for why the above recommendation is not just wrong,
but very wrong!

Very often putting multiple types into a single package solves in a neat and
clean way nasty problems that simply don't have neat solutions in other
languages.

You are tieing BOTH hands behind your back if you adopt this completely
unnecessary and damaging restriction.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent reply	other threads:[~1999-05-05  0:00 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-01  0:00 pointers & OOP Matthew Heaney
1999-05-01  0:00 ` Matthew Heaney
1999-05-03  0:00 ` John Robinson
1999-05-03  0:00   ` Samuel Mize
1999-05-04  0:00     ` Martin C. Carlisle
1999-05-04  0:00     ` Robert Dewar
1999-05-04  0:00   ` Robert Dewar
1999-05-04  0:00     ` Mike Silva
1999-05-05  0:00     ` Francois Godme
1999-05-05  0:00     ` John Robinson
1999-05-05  0:00       ` Robert Dewar
1999-05-08  0:00         ` Ehud Lamm
1999-05-05  0:00       ` Robert Dewar [this message]
1999-05-05  0:00         ` John Robinson
1999-05-06  0:00           ` Brian Rogoff
1999-05-07  0:00             ` dennison
1999-05-07  0:00               ` Brian Rogoff
1999-05-10  0:00                 ` dennison
1999-05-11  0:00                   ` Jean-Pierre Rosen
1999-05-11  0:00                     ` dennison
1999-05-10  0:00             ` John Robinson
1999-05-14  0:00               ` Matthew Heaney
1999-05-14  0:00                 ` David Botton
1999-05-14  0:00           ` Matthew Heaney
1999-05-14  0:00             ` Ed Falis
1999-05-05  0:00       ` Matthew Heaney
1999-05-06  0:00       ` Tom Moran
1999-05-06  0:00         ` John Robinson
1999-05-06  0:00           ` Tom Moran
1999-05-07  0:00             ` dennison
1999-05-07  0:00             ` dennison
1999-05-07  0:00             ` dennison
1999-05-10  0:00             ` John Robinson
1999-05-14  0:00         ` Matthew Heaney
1999-05-06  0:00       ` Simon Wright
1999-05-06  0:00         ` John Robinson
1999-05-08  0:00           ` Simon Wright
1999-05-10  0:00             ` John Robinson
  -- strict thread matches above, loose matches on Subject: below --
1999-05-01  0:00 Tom Moran
replies disabled

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