This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __property keyword support in GCC
- To: skvaren at fred dot utc dot sk (Skvarenina Peter - 5ZA51/9)
- Subject: Re: __property keyword support in GCC
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Mon, 13 Dec 99 14:57:59 PST
- Cc: scherrey at proteus-tech dot com, jbuck at synopsys dot com, gcc at gcc dot gnu dot org
> But I thought, that __property could be very easy added into GCC, because
> it only needs some new grammar rules, such as:
>
> <property_construct> ::= __property <defined_type> <prop_name> { <prop_attr_list> };
> <prop_attr_list> ::= <prop_id> <prop_attr_list> | [];
> <prop_id> ::= <prop_type> = <class_member>;
> <prop_type> ::= read | write | ...;
Parsing the declaration of a property type is, as you say, relatively
simple. But the main work would be the appropriate handling of property
symbols in all contexts, including all the contexts where they don't make
sense (attempts to create pointers or references to a property, etc), plus
debugger support (the gdb user would want to be able to refer to property
symbols).