Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFA: fix PR python/11915
Date: Sat, 21 Aug 2010 07:54:00 -0000	[thread overview]
Message-ID: <83eidspff4.fsf@gnu.org> (raw)
In-Reply-To: <m3y6c0yky1.fsf@fleche.redhat.com>

> From: Tom Tromey <tromey@redhat.com>
> Date: Fri, 20 Aug 2010 16:32:22 -0600
> 
> This patch fixes PR python/11915.
> 
> It adds a new method, Type.array, so that users can create new array
> types at runtime.

Thanks.

> +@defmethod Type array @var{n1} @r{[}@var{n2}@r{]}
> +Return a new @code{gdb.Type} object which represents an array of this
> +type.  If one argument is given, it is the inclusive upper bound of
> +the array; in this case the lower bound is zero.  If two arguments are

"Inclusive upper bound"?  Does this mean that if the argument is N,
then the array will have N+1 members, from zero to N?  That sounds
against the intuition, doesn't it?

> +given, the first argument is the lower bound of the array, and the
> +second argument is the upper bound of the array.

Will the reader know whether negative arguments are allowed (provided
that the second is greater than the first)?  Or is it a good idea to
tell explicitly?


  reply	other threads:[~2010-08-21  7:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-20 22:32 Tom Tromey
2010-08-21  7:54 ` Eli Zaretskii [this message]
2010-08-23 17:03   ` Tom Tromey
2010-08-23 17:16     ` Eli Zaretskii

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=83eidspff4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --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