From -1908510964763469247
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,6d5520f8ce526ad5
X-Google-Attributes: gidf78e5,public
From: Jim Cobban <thesnaguy@hotmail.com>
Subject: Re: Pointer to member function restriction in standard
Date: 2000/01/27
Message-ID: <388F7E09.67B76148@hotmail.com>#1/1
X-Deja-AN: 578077606
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
References: <388CC286.B7848872@hotmail.com> <86l2rq$r0i@library2.airnews.net>
X-Accept-Language: en
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
Content-Type: multipart/mixed; boundary="------------D958C02480015BFE950CEE8E"
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 948930249 mail2news:7487 mail2news mail2news.demon.co.uk
Organization: Magma Communications Ltd.
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Mime-Version: 1.0
Nntp-Posting-Date: Wed, 26 Jan 2000 18:03:56 EDT
Newsgroups: comp.std.c++

This is a multi-part message in MIME format.
--------------D958C02480015BFE950CEE8E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Bill Wade wrote:

> My second guess: for object (data) members there needs to be a way to
> disambiguate pointer-to-member, pointer-to-object, and object.  If m is a
> non-static data member of base then &base::m, &(base::m) and base::m mean
> three different things.  The standard is slightly simpler if the same rules
> apply to both function members and data members.

I will grant you that I understand that the capability in base C and C++ to
implicitly convert the name of a function into a pointer to the function was
always recognized as a shortcut.  However it is a shortcut which the STL itself
has taken advantage of, for example in the implementation of parameter-less IO
manipulators.

My point remains that my code would look cleaner and be easier to understand if
this restriction was not present.  I am, in effect, being penalized for writing
object-oriented code.

--
Jim Cobban   jcobban@magma.ca
34 Palomino Dr.
Kanata, ON, CANADA
K2M 1M1
+1-613-592-9438


--------------D958C02480015BFE950CEE8E
Content-Type: text/x-vcard; charset=us-ascii;
 name="thesnaguy.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jim Cobban
Content-Disposition: attachment;
 filename="thesnaguy.vcf"

begin:vcard 
n:Cobban;James
tel;fax:+1-613-592-9438
tel;home:+1-613-592-9438
x-mozilla-html:FALSE
url:http://www.magma.ca/~jcobban
version:2.1
email;internet:thesnaguy@hotmail.com
title:Consultant
adr;quoted-printable:;;34 Palomino Dr.=0D=0A;Kanata;ON;K2M 1M1;Canada
fn:Jim Cobban
end:vcard

--------------D958C02480015BFE950CEE8E--

---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]




