From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: keiths@redhat.com
Cc: gdb@sourceware.org
Subject: Re: Quoting and the expr parser
Date: Tue, 05 Aug 2008 19:46:00 -0000 [thread overview]
Message-ID: <200808051945.m75Jj0qD013712@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <4898A8D4.2040100@redhat.com> (message from Keith Seitz on Tue, 05 Aug 2008 12:24:04 -0700)
> Date: Tue, 05 Aug 2008 12:24:04 -0700
> From: Keith Seitz <keiths@redhat.com>
>
> Hi,
>
> I have a simple question:
>
> Why must one type "my_class::'operator+'" instead of simply
> "my_class::operator+"?
>
> *Should* gdb accept the latter; after all, it's not ambiguous (assuming
> it's not overloaded).
GDB probably should accept that if the selected language is C++. The
problem though is that it is actually pretty difficult to make GDB
accept that wiouout the additional quotes. Normally a '+' sign isn't
allowed in a function name, so you'd have to teach the lexer/parser
that it is allowed but only if there the "operator" keyword is used
right in front of it. This is a fundamental problem with C++. It is
so badly designed that it is almost impossible to write a proper
parser for it.
next prev parent reply other threads:[~2008-08-05 19:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-05 19:25 Keith Seitz
2008-08-05 19:46 ` Mark Kettenis [this message]
2008-08-06 7:03 ` André Pönitz
2008-08-05 20:22 ` Daniel Jacobowitz
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200808051945.m75Jj0qD013712@brahms.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb@sourceware.org \
--cc=keiths@redhat.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox