|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <39B3B53A.38EEA979@free.fr>, Nicolas Calimet
<pov### [at] freefr> wrote:
> What about #eval if not used elsewhere ?
Doesn't seem very clear...it seems to be a shortcut for "evaluate", and
you aren't evaluating a variable, you are setting it to a specific value.
--
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/
<><
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote:
>Peter J. Holzer <hjp### [at] sikituwsracat> wrote:
>: # a = a + 5
>
> A semi-colon at the end would be nicer.
Why?
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Ken wrote:
>
> "Tony[B]" wrote:
> >
> > There are programming languages like this out there? <shudder>
>
> The example he gave is not very different than what we had in
> POV-Ray v1.0.
I think some of us still keep in mind the happy times of DBW-render 1
(1989 for me, Amiga 500... 68000 @ 7.14MHz)
--
__ __ __ __ _
| | / \ / / |_ / |/
\/\/ \__/ /_ /_ |__ \_ |\
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Nicolas Calimet wrote:
>
> What about #eval if not used elsewhere ?
> (okay, one letter longer)
Used in isosurfaces. (evaluates the max_gradient)
Fabien.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <8FA5B9FE6seed7@204.213.191.228>, ing### [at] homenl (ingo)
wrote:
> > A semi-colon at the end would be nicer.
>
> Why?
It might allow simplifying the parser to allow faster parsing, and
provides a visually obvious cue to the end of the statement(which can be
several lines and several {} blocks down, like in the case of layered
textures).
--
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/
<><
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
It may also cause problems if you use it in odd places, like:
sphere { <1,2,3>, # a = 1 2 pigment { rgb 1 } }
You may think that it's an unrealistic example, but it isn't.
One word: Macros.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Chris Huff wrote:
>It might allow simplifying the parser to allow faster parsing,...
Ah, ok.
>... and provides a visually obvious cue to the end of the statement(which
>can be several lines and several {} blocks down, like in the case of
>layered textures).
Personaly I don't need or like them for that, I forget to put them in very
often and pov runs ok, except for the warnings.
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <39b505ca@news.povray.org>, Warp <war### [at] tagpovrayorg>
wrote:
> It may also cause problems if you use it in odd places, like:
>
> sphere { <1,2,3>, # a = 1 2 pigment { rgb 1 } }
You mean not using a semicolon will cause problems, right? Because I
don't think a "# VarName" feature would cause trouble.
--
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/
<><
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
ingo wrote:
> Personaly I don't need or like them for that, I forget to put them in very
> often and pov runs ok, except for the warnings.
When semi-colons were first introduced I bitched up a storm about
them. They are particularly bad in the windows version if you have
"message stream to consol" turned on because all of the warning
messages chew up cpu cycles like there's no tomorrow. I finaly
broke down and forced myself to use them and it has become almost
second nature to use them now. I could do without them but if
the parser runs better with them I can live with that.
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Chris Huff <chr### [at] maccom> wrote:
:> It may also cause problems if you use it in odd places, like:
:>
:> sphere { <1,2,3>, # a = 1 2 pigment { rgb 1 } }
: You mean not using a semicolon will cause problems, right? Because I
: don't think a "# VarName" feature would cause trouble.
That was what I meant. If you don't use a semicolon, the parser may get
confused.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |