From -340225669685087390
X-Google-Thread: f78e5,e8e0ab29e8861265
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 25 Jul 2005 19:20:05 -0500
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Delivered-To: std-c++@ucar.edu
From: "Bob Bell" <belvis@pacbell.net>
Newsgroups: comp.std.c++
Subject: Re: If C++ had interfaces, what would they be?
Organization: http://groups.google.com
Message-ID: <1122336456.595882.282330@g49g2000cwa.googlegroups.com>
References: <dfadnU0KIovHJkbfRVn-3Q@speakeasy.net>
   <1121963458.661748.118300@f14g2000cwb.googlegroups.com>
   <HIednX0HN9sLm33fRVn-qQ@speakeasy.net>
   <1122299887.515239.317170@g49g2000cwa.googlegroups.com>
   <oaidneYkiKMP93jfRVn-hQ@speakeasy.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Complaints-To: groups-abuse@google.com
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: g49g2000cwa.googlegroups.com; posting-host=160.33.20.11;
   posting-account=YkQmFgwAAADb4VCQxbKct8M2us8SA5QU
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
Date: Mon, 25 Jul 2005 19:13:37 CST
Lines: 42
NNTP-Posting-Host: 65.182.171.162
X-Trace: sv3-bXlE5o/j9e8IGqPoske+4QjZlMX9mcQFvm9QPZvy/f4N86bIKyj7WZd8gCuFCik9mv/wpaOO+h3Ma4t!W56CnjkcvfU3Kcnh4fv8XQ1XW0bWy1PAp3XE3gLYlLil1Uq/Yf5cWu7OZV91vo04zbj2IEwXsGfy!BjCzuFKU9WRGk6YXMQbudFTpvFcvpFXbXtAneurMSng=
X-Complaints-To: abuse@speakeasy.net
X-DMCA-Complaints-To: abuse@speakeasy.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32
Xref: g2news1.google.com comp.std.c++:1488

"Steven T. Hatton" wrote:
> kanze@gabi-soft.fr wrote:
>
> > "Steven T. Hatton" wrote:
> >> People can argue that there are mechanisms for locating such
> >> definitions without a great deal of effort.  It may only take
> >> a minute. Do that 60 times, and it takes an hour.  The
> >> arrangement of different code bases makes this more difficult
> >> than it would be if there were a formal mechanism for
> >> organizing resources(as in Java).
> >
> > I don't know.  I've found it just as difficult to locate
> > definitions in Java as in C++.  More difficult, in fact, because
> > the definitions are always embedded in a mess of implementation
> > details.
>
> With the exception of interfaces and abstract classes, Java doesn't have any
> distinction between "declaration" and "definition" (that I can thing of.)
> Of course these features are used extensively.  Nonetheless, because the
> Java source code is more coherently organized by specification (or at least
> recommendation and convention), and also because Java specifies a great
> many infrastructure mechanism to facilitate locating resources, the Java
> resource base can be searched much more effectively and deterministically
> than can a C++ code base.

As far as I can tell, this simply isn't true; at least, searching for
definitions in a C++ code base does not have to be inefficient or
non-deterministic. Modern IDEs accomplish this quite handily; the
Metrowerks IDE can quickly take me to the definitions of macros,
functions, classes, typedefs, etc.

In other words, the ability to search a code base is a tools issue, not
a language issue.

Bob

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



