This is the mail archive of the gcc-help@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: try-catch exception


On Thu, Oct 31, 2013 at 6:53 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 31 October 2013 17:48, JÄdrzej Dudkiewicz wrote:
>> On Thu, Oct 31, 2013 at 6:38 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>>> On 31 October 2013 17:19, JÄdrzej Dudkiewicz wrote:
>>>>
>>>> Even as a infix/suffix? I thought that double underscore is reserved
>>>> only if it is used as a prefix?
>>>
>>> No, a double underscore anywhere makes it a reserved name.
>>>
>>> â Each name that contains a double underscore _ _ or begins with an
>>> underscore followed by an uppercase letter (2.12) is reserved to the
>>> implementation for any use.
>>
>> Thanks. Is it from c++11 or c++98? I'm pretty certain that when I read
>> it last time it read only "begins with". But it seems that my memory
>> ain't that good after all, eh?
>
> C++98.
>
> IIRC double underscore are not reserved in C except at the beginning
> of a name, so maybe that's what you're thinking of.

Yes, it seems that what I rememeber is C rule. Have you any idea why
is double-underscore reserved inside an identifier? I understand
prefix and can imagine reasons for suffix, but infix is totally beyond
me.
-- 
JÄdrzej Dudkiewicz

I really hate this damn machine, I wish that they would sell it.
It never does just what I want, but only what I tell it.


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