Re: nested comments
On 2007-12-26 18:02, Rahul wrote:
> On Dec 26, 8:07 pm, Dave Rahardja
> <drahardja.place...@sign.here.pobox.com> wrote:
>> On 2007-12-26 02:06:00 -0600, Rahul <sam_...@yahoo.co.in> said:
>>
>> > Hi Everyone,
>>
>> > I was wondering about the nested comments and the reason why it is
>> > not acceptable...
>>
>> It is prohibited by the standard, Section 2.7.
>>
>> -dr
>
> I understand that it is not allowed, but its not a big deal for a
> compiler to ignore nested comments... (compilers can detect nested
> ifs, nested blocks... etc) i was just wondering if there was any
> specific reason of not allowing nested comments...
Originally it was probably to make life easier for the compiler developers.
--
Erik Wikström
|