POV-Ray : Newsgroups : povray.general : subtle problem with /*...*/ comment block : Re: subtle problem with /*...*/ comment block Server Time
2 Jan 2025 10:51:08 EST (-0500)
  Re: subtle problem with /*...*/ comment block  
From: ingo
Date: 22 Dec 2024 05:15:00
Message: <web.6767e66af8229af417bac71e8ffb8ce3@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:

> I don't myself use 'open-indicator to close-indicator' block style
> comments - as a rule.

On a side note, the block style commenting is very useful for processing other
content in
...pov-files. For example literate programming.

/*$redlines
......
*/

can be a explanation, tutorial, block that goes with a macro below it, while

#macro redlines(thickness, roundness, ...)
/*:redlines(thickness, roundness, ...)
parameters:
thickness (float): ....
roundness (float): ....

result:
......
*/

........macro code

#end

can be used for documentation of that macro. All information goes in the .pov
file and with a proper untangle software one could extract the documentation and
a tutorial.

ingo


Post a reply to this message

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