unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: acm@muc.de, emacs-devel@gnu.org
Subject: Re: C++ qualified method names
Date: Fri, 26 May 2017 15:37:47 +0300	[thread overview]
Message-ID: <83lgpjkd44.fsf@gnu.org> (raw)
In-Reply-To: <CAP_d_8VH_f71ra=ZVhvx-XQh=OMSMg-uPNzQZP845wtCEaZ0Xg@mail.gmail.com> (message from Yuri Khan on Fri, 26 May 2017 17:15:40 +0700)

> From: Yuri Khan <yuri.v.khan@gmail.com>
> Date: Fri, 26 May 2017 17:15:40 +0700
> Cc: Alan Mackenzie <acm@muc.de>, Emacs developers <emacs-devel@gnu.org>
> 
> >   void
> >   regcache::raw_supply_integer (int foo)
> >   {
> >     whatever (foo);
> >   }
> >
> > invoking "M-: (c-defun-name) RET" produces "raw_supply_integer".  Why
> > does it exclude the class qualification?  Is there a way to have that
> > included?  This is important e.g. when producing a ChangeLog entry for
> > such methods.
> 
> This is a good question that opens a can of worms.
> 
> What if the clasess is in a namespace? Do you want to include the
> namespace, too? …the whole chain of namespaces up to the root? What if
> some of them are inline namespaces?
> 
> What if the method is overloaded on argument types? …on method
> cv-qualifiers and ref-qualifiers?
> 
> What if the thing on which (c-defun-name) is a function template? …a
> class template? …an explicit specialization? …a partial
> specialization?

Since it is easier to delete than to type, I guess my answer would be
"all of the above".



  reply	other threads:[~2017-05-26 12:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-26  9:39 C++ qualified method names Eli Zaretskii
2017-05-26 10:15 ` Yuri Khan
2017-05-26 12:37   ` Eli Zaretskii [this message]
2017-05-26 10:21 ` Alan Mackenzie
2017-05-26 13:08   ` Eli Zaretskii
2017-05-30 17:10     ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83lgpjkd44.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).