POV-Ray : Newsgroups : povray.unofficial.patches : #let keyword(was: Previews of Ice Planet...) Server Time
2 Sep 2024 04:15:08 EDT (-0400)
  #let keyword(was: Previews of Ice Planet...) (Message 26 to 35 of 35)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Chris Huff
Subject: Re: #let keyword(was: Previews of Ice Planet...)
Date: 4 Sep 2000 10:54:18
Message: <chrishuff-490C39.09555804092000@news.povray.org>
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

From: ingo
Subject: Re: #let keywor
Date: 4 Sep 2000 12:24:10
Message: <8FA5B9FE6seed7@204.213.191.228>
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

From: Francois Dispot
Subject: Re: #let keyword(was: Previews of Ice Planet...)
Date: 4 Sep 2000 13:34:52
Message: <39B3DD3C.AFE2C761@club-internet.fr>
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

From: Fabien Mosen
Subject: Re: #let keyword(was: Previews of Ice Planet...)
Date: 4 Sep 2000 13:42:42
Message: <39B3DE06.F710083A@skynet.be>
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

From: Chris Huff
Subject: Re: #let keywor
Date: 4 Sep 2000 16:14:24
Message: <chrishuff-4ED998.15160504092000@news.povray.org>
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

From: Warp
Subject: Re: #let keywor
Date: 5 Sep 2000 10:40:11
Message: <39b505ca@news.povray.org>
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

From: ingo
Subject: Re: #let keywor
Date: 5 Sep 2000 12:06:32
Message: <8FA6B63DAseed7@204.213.191.228>
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

From: Chris Huff
Subject: Re: #let keywor
Date: 5 Sep 2000 14:39:43
Message: <chrishuff-82A7EC.13412505092000@news.povray.org>
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

From: Ken
Subject: Re: #let keywor
Date: 5 Sep 2000 21:02:09
Message: <39B5972E.7C3DC142@pacbell.net>
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

From: Warp
Subject: Re: #let keywor
Date: 6 Sep 2000 04:39:02
Message: <39b602a5@news.povray.org>
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

<<< Previous 10 Messages Goto Initial 10 Messages

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