Is this legal C++?

Mark Mitchell mark@codesourcery.com
Thu Apr 20 00:43:00 GMT 2000


>>>>> "Martin" == Martin v Loewis <martin@loewis.home.cs.tu-berlin.de> writes:

    >> For all these reasons, we just turned down a C++ extension that
    >> Ulrich suggested.  I feel similarly about your suggestion: it's
    >> not a bad idea in language design, but it's not C++, either.

    Martin> I think it *is* a bad idea. If you want to implicitly
    Martin> dereference any pointer-to-member if it happens to appear
    Martin> in a function where it could be applied, then assigning to
    Martin> such pointer to member is very difficult.

Perhaps I misunderstood the suggestion.  In any case, what I meant to
imply was that I had not thought about the proposed extension in much
detail; only enough to think that it solved no crucial problem, but
did carry maintenance cost.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


More information about the Gcc mailing list