This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: $n for pretty-printed elements?
- From: Roland McGrath <roland at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Project Archer <archer at sourceware dot org>
- Date: Sun, 19 Jul 2009 23:21:50 -0700 (PDT)
- Subject: Re: $n for pretty-printed elements?
- References: <20090629000709.45C9C420F6@magilla.sf.frob.com><m3ljmn3r01.fsf@fleche.redhat.com>
> Sorry for the delay in replying to this.
> I'm very behind :(
No problem.
> Roland> (gdb) p _m_path
> Roland> $161 = std::list = {
> Roland> [0] = $162 = {
>
> This seems like a good idea to me.
>
> There are some subtleties. [...]
Sure. I didn't try to think through the whole general case of this feature.
> I suppose my point is that there are some operations, like assignments,
> which wouldn't always make sense.
Sure. I really just had in mind the basics of "I want &(that one there) to
use in another expression". It only has to make sense when it makes
sense. :-)
The point of frustration comes when the (ordinarily quite nice) pretty
printers are hiding what the (otherwise painful to read through) generic
old style of printing internal member details make fairly easy to express.
> I'll put this on my list.
Great!
Thanks,
Roland