C++: Tag transparent binding contour

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Jun 3 17:36:00 GMT 2003


Jason Merrill <jason@redhat.com> writes:

| On 03 Jun 2003 19:06:15 +0200, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
| 
| > Thank you.  Is it OK to describe the binding contour created by
| > maybe_push_cleanup_level as just a bare sk_block?  Or do you think it
| > is necessary to introduce a separate scope_kind enumerator? (I would
| > say sk_block is sufficient),
| 
| Well, it isn't a block.  It's transparent to all names.  If you're working
| to distinguish different types of binding levels, this seems worth
| distinguishing.

Aha, thanks for the info.  So it appears that the use of
tag-transparent binding contour is kind of "abuse" with respect to
your comment above.

|  If you give these a different scope_kind, you could check
| that and do away with the magic handling of keep==2.

Thank you, I think I will do that.  Does sk_cleanup sound good?

-- Gaby



More information about the Gcc mailing list