POV-Ray : Newsgroups : povray.beta-test : Function parameter bug : Function parameter bug Server Time
30 Jul 2024 14:21:30 EDT (-0400)
  Function parameter bug  
From: Rune
Date: 26 Oct 2001 17:17:45
Message: <3bd9d2f9@news.povray.org>
I'm not that much into how functions work and should work, but this surely
must be a bug?

The following code:

#declare V = 0.1;
#declare Myfunction = function (V) {V*2}
sphere {x, V}

Gives the error:

"#declare V = 0.1;

#declare Myfunction = function (V <----ERROR

Parse Error: Expected 'parameter identifier', float function 'float
identifier' found instead


Returned from renderer with error status"

I'm using POV-Ray 3.5 beta 6
on a P150, 16MB RAM
Windows 95  4.00.450 B  IE 5 5.00.2919.6307

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated June 26)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

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