POV-Ray : Newsgroups : povray.beta-test : Nested comments Server Time
29 Jul 2024 20:15:08 EDT (-0400)
  Nested comments (Message 6 to 15 of 15)  
<<< Previous 5 Messages Goto Initial 10 Messages
From: TinCanMan
Subject: Re: Nested comments
Date: 18 Apr 2002 07:34:21
Message: <3cbeaf3d$1@news.povray.org>
> What *does* annoy me, however, is that the following, which should be
> perfectly fine:
>
> /* comment /* comment continued */
>
> gives an error, saying that the openings and closings of comments don't
> match. I think if nested comments aren't allowed, the program shouldn't
> complain about improper nesting.


Patient: It hurts when I do this.
Doctor: Stop doing that.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Nested comments
Date: 18 Apr 2002 10:34:09
Message: <3cbed961@news.povray.org>
In article <3cbe1353@news.povray.org> , "Slime" <noo### [at] hotmailcom> wrote:

> /* comment /* comment continued */
>
> gives an error, saying that the openings and closings of comments don't
> match. I think if nested comments aren't allowed, the program shouldn't
> complain about improper nesting.

And how could it then determine if you want a part to be commented out or not?
If you think about what you are suggesting carefully you will find that what
you are expecting is mind-reading :-)

    Thorsten


Post a reply to this message

From: Alf Peake
Subject: Re: Nested comments
Date: 18 Apr 2002 10:59:26
Message: <3cbedf4e@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3cbe163e@news.povray.org...
[snip]
>   The great thing about nested comments being supported is that if
you
> have a piece of code with lots of /*...*/ comments and then you want
to
> comment out the entire piece of code, it works just fine.

This is exactly what I have always done since pov 2 in DOS. I'm new to
WinPov, wanted to play with 3.5 :) and wasn't aware of this codemax
error.

Alf


Post a reply to this message

From: Slime
Subject: Re: Nested comments
Date: 18 Apr 2002 11:18:15
Message: <3cbee3b7$1@news.povray.org>
> > /* comment /* comment continued */

> And how could it then determine if you want a part to be commented out or
not?
> If you think about what you are suggesting carefully you will find that
what
> you are expecting is mind-reading :-)

Under my assumption that POV-Ray does not support nested comments, which has
been corrected, I would have expected it to behave like languages that
*don't* support nested comments, and simply ignore the second /*, since once
you're in a comment, the only thing that should be responded to is the
closing */.

- Slime
[ http://www.slimeland.com/ ]
[ http://www.slimeland.com/images/ ]


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Nested comments
Date: 18 Apr 2002 13:41:40
Message: <3cbf0554@news.povray.org>
In article <3cbee3b7$1@news.povray.org> , "Slime" <noo### [at] hotmailcom> wrote:

>> > /* comment /* comment continued */
>
>> And how could it then determine if you want a part to be commented out or
> not?
>> If you think about what you are suggesting carefully you will find that
> what
>> you are expecting is mind-reading :-)
>
> Under my assumption that POV-Ray does not support nested comments, which has
> been corrected, I would have expected it to behave like languages that
> *don't* support nested comments, and simply ignore the second /*, since once
> you're in a comment, the only thing that should be responded to is the
> closing */.

Ah, so you had not seen Christoph Hormann's response which already noted that
nested comments are support just not in the editor.  It is really hard to
figure out when you responded because of the wrong date in your posts.  All
your posts are over six days older...

    Thorsten


Post a reply to this message

From: Slime
Subject: Re: Nested comments
Date: 18 Apr 2002 14:12:02
Message: <3cbf0c72@news.povray.org>
> Ah, so you had not seen Christoph Hormann's response which already noted
that
> nested comments are support just not in the editor.  It is really hard to
> figure out when you responded because of the wrong date in your posts.
All
> your posts are over six days older...

Oops... you're right, I had my system clock set back a week. Strange.

I wonder why the newsgroup uses the time of the system that sent the
message? Seems that would cause errors with people in different time zones.

- Slime
[ http://www.slimeland.com/ ]
[ http://www.slimeland.com/images/ ]


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Nested comments
Date: 18 Apr 2002 15:23:47
Message: <3cbf1d43@news.povray.org>
In article <3cbf0c72@news.povray.org> , "Slime" <noo### [at] hotmailcom> wrote:

> Oops... you're right, I had my system clock set back a week. Strange.
>
> I wonder why the newsgroup uses the time of the system that sent the
> message? Seems that would cause errors with people in different time zones.

No, because posts include the time zone.  As for why the user time is used,
well, that is Usenet history...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: Nested comments
Date: 18 Apr 2002 16:15:04
Message: <3cbf2947@news.povray.org>
Slime <noo### [at] hotmailcom> wrote:
> Oops... you're right, I had my system clock set back a week. Strange.

  Trying to trick the expiration code in POV-Ray? ;)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Nicolas Calimet
Subject: Re: Nested comments
Date: 18 Apr 2002 17:29:47
Message: <3CBF3ACB.6090000@free.fr>
> Well, in C you can do #if(0) ... #endif, but don't
> expect any editor to color that block as a comment.


<troll mode=short>
   Vim does it perfectly. Another reason not to use emacs ?  ;op
</troll>


Post a reply to this message

From: Slime
Subject: Re: Nested comments
Date: 18 Apr 2002 18:12:13
Message: <3cbf44bd$1@news.povray.org>
>   Trying to trick the expiration code in POV-Ray? ;)

I needed to render something really fast for a project, didn't have time to
redownload =) then I just never changed it back...

- Slime
[ http://www.slimeland.com/ ]
[ http://www.slimeland.com/images/ ]


Post a reply to this message

<<< Previous 5 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.