From: Jim Blandy <jimb@codesourcery.com>
To: Rob Quill <rob.quill@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Checking variable scope
Date: Wed, 29 Nov 2006 19:08:00 -0000 [thread overview]
Message-ID: <m34psidqa8.fsf@codesourcery.com> (raw)
In-Reply-To: <20061129190614.GB9754@nevyn.them.org> (Daniel Jacobowitz's message of "Wed, 29 Nov 2006 14:06:14 -0500")
Daniel Jacobowitz <drow@false.org> writes:
> On Wed, Nov 29, 2006 at 10:44:33AM -0800, Jim Blandy wrote:
>> I'm suggesting that you extend the grammar even further, by allowing
>> one to say things like this (assume there is no binding for 'a' in
>> scope, but there is a binding for 'b' in scope):
>>
>> (gdb) print $in_scope(a)
>> $1 = 0
>> (gdb) print $in_scope(b)
>> $1 = 1
>> (gdb)
>
> Is extending the grammar really necessary? That will already parse;
> it's the same as you'd use for a convenience variable named in_scope
> holding a function pointer.
I think so, because you need to prevent the reference to 'a' from
producing an error when you parse the expression.
prev parent reply other threads:[~2006-11-29 19:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 11:32 Rob Quill
2006-11-22 19:10 ` Jim Blandy
2006-11-23 13:09 ` Rob Quill
2006-11-27 19:46 ` Jim Blandy
2006-11-28 11:47 ` Rob Quill
2006-11-28 19:43 ` Jim Blandy
[not found] ` <baf6008d0611290519i4e25c51bt865320b09c756ec8@mail.gmail.com>
2006-11-29 13:20 ` Rob Quill
2006-11-29 18:44 ` Jim Blandy
2006-11-29 19:06 ` Daniel Jacobowitz
2006-11-29 19:08 ` Jim Blandy [this message]
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=m34psidqa8.fsf@codesourcery.com \
--to=jimb@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=rob.quill@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox