Re: New scope checking patch

Tom Tromey
2008-07-29T20:31:59Z

>>>>> "Rob" == Rob Quill <rob.quill@gmail.com> writes:

Rob> 2008-07-27 Rob Quill <rob.quill@gmail.com>
Rob> Add $in_scope as a type of expression.

This seems like a good candidate for an internal function. The syntax
is nearly identical.

The only difference is that, at the GCC Summit, we agreed that
arguments to internal functions would be expressions. So, instead of
$in_scope(x) you would have to write $in_scope("x").

Internal functions are only in the python repository right now. The
patch consists of two parts: an internals-only part, and the part that
exposes the functionality to the Python layer.

I think we can submit the internals part as a separate patch. AFAIK
the only reason we haven't is just that there's been no need for it
outside the Python work.

Tom