Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Tom Tromey <tromey@redhat.com>
Cc: Paul Pluzhnikov <ppluzhnikov@google.com>, gdb-patches@sourceware.org
Subject: Re: [RFC] [patch] 'p->x' vs. 'p.x' and 'print object on'
Date: Thu, 07 Aug 2008 20:20:00 -0000	[thread overview]
Message-ID: <20080807202011.GB2374@caradoc.them.org> (raw)
In-Reply-To: <m3tzdwhgv1.fsf@fleche.redhat.com>

On Thu, Aug 07, 2008 at 11:31:14AM -0600, Tom Tromey wrote:
> Paul> C) Do what the language does: lookup field 'x' in the static type,
> Paul>    and only try dynamic type if the first lookup failed:
> 
> Paul> I think "C" is the least confusing alternative.
> Paul> It may actually be good to do "C" independent of the 'print object'
> Paul> setting.
> 
> I agree.  This does sound better.

I agree too.  We have an extension that allows you to use "." on
pointers with the implicit dereference; but it shouldn't change the
type of the pointer, nor should ->.  It's a reasonably well-defined
extension as such things go.  At least, until you involve user-defined
operators.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-08-07 20:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-17 21:49 Paul Pluzhnikov
2008-07-22  0:53 ` Tom Tromey
2008-07-30 17:51   ` Paul Pluzhnikov
2008-08-07 17:31     ` Tom Tromey
2008-08-07 20:20       ` Daniel Jacobowitz [this message]
2008-08-11 15:09     ` Tom Tromey
2008-08-19 18:05       ` Paul Pluzhnikov
2008-08-26 16:45         ` Paul Pluzhnikov
2008-10-22 22:32         ` Ulrich Weigand

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=20080807202011.GB2374@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=ppluzhnikov@google.com \
    --cc=tromey@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