From 5313723925681030607 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,9d57bb38940f08c2 X-Google-Attributes: gidf78e5,public From: "Martijn Lievaart" Subject: Re: References to functions allowed? Date: 1999/01/20 Message-ID: <784kvk$fg0@news3.euro.net>#1/1 X-Deja-AN: 434817063 Approved: Fergus Henderson References: <36A222B3.E51DFD28@ibm.net> <780f6f$kjs$1@engnews2.Eng.Sun.COM> <36A3CA3A.C33862DF@ibm.net> X-Original-Date: 20 Jan 1999 13:16:36 GMT X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: news@news.unimelb.edu.au X-Trace: izvestia.its.unimelb.edu.au 916842652 16259 128.250.29.16 (20 Jan 1999 14:30:52 GMT) Organization: EuroNet Internet X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANqXohuEDnX0m9pzZAQHAPAF+O3Ia5Y9/dzuI9pUqDtNns0CLs7FRRHYJ WtEXOZHYN7fqxc+5c1ikZQMCpLoK3tzo =C2FQ NNTP-Posting-Date: 20 Jan 1999 14:30:52 GMT Newsgroups: comp.std.c++ Siemel Naran wrote in message ... > >And a small aside. I often make the mistake of calling member >functions that take no arguments like this, > int f=object.func; // should be "int f=object.func()" >This gives me strange errors at compile time. If compilers >enforced the rule that you must use '&', then the above would be >meaningless, and I'd get a pretty decent error message. > VC 5 often gives an internal compiler error in this specific case. Talk about strange errormessages ;^> I'ld love to see your proposol in the next standard, it's just so much more logical. I cannot think of any reason why this would not be possible, except from breaking a lot of old code (but we can depricate it first). Martijn -- My reply-to address is intentionally set to /dev/null reply to mlievaart at orion in nl --- [ 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 ]