This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using C++ in GCC is OK


On 06/02/2010 01:42 AM, Ian Lance Taylor wrote:
>> The 'this->' is needed when the current class and base class are both
>> templates and the name is declared in the base class, and not if it's
>> declared in the current class.  That is not likely to happen in a
>> hurry while the convention is to not define any templates.
> 
> Right, but it may happen some day.  Also there is the issue of
> clarity.  I think it is clearer to see this->get() rather than get().

gold is using this convention, isn't it?  I think there's value in using
similar or even identical conventions for both gold and gcc so that
people hacking both don't need to learn two different sets.


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]