POV-Ray : Newsgroups : povray.beta-test : #undef function parsing error Server Time
29 Jul 2024 16:21:04 EDT (-0400)
  #undef function parsing error (Message 1 to 4 of 4)  
From: Gelu Stoicescu
Subject: #undef function parsing error
Date: 26 Mar 2002 17:20:02
Message: <3ca0f412@news.povray.org>
win98, POV-Ray 3.5 beta 14 intel

Hello POV team and keep up the good work.

#version 3.5;
#declare fn=function{pattern{checker}};
#undef fn

#undef function causes a parsing error
Parse Error: Expected 'undeclared identifier',  function identifier found
instead
... or vector function, where the case is.

And I don't mean to criticize, but all you people ought to do to see this
coming is render the insert menu big pictures. It occurs in Pattern-Texture
attributes->waveform attribute (that is, Images.ini section [201], file
Attributes.pov)

Gelu


Post a reply to this message

From: SciBorg
Subject: Re: #undef function parsing error
Date: 27 Mar 2002 05:46:33
Message: <3CA1A307.6010100@irrwerk.de>
win98, POV-Ray 3.5 beta 14 AMD XP1800+

Confirmed
I tried Christoph Hormanns really nice isosurface include and the same 
happend

>#undef function causes a parsing error
>Parse Error: Expected 'undeclared identifier',  function identifier found
>instead
>... or vector function, where the case is.
>
#undef  of a normal variable (scalar, vector, object) worked.

Cheers to all Developer of POVRay

SciBorg.


Post a reply to this message

From: Warp
Subject: Re: #undef function parsing error
Date: 27 Mar 2002 09:43:52
Message: <3ca1daa7@news.povray.org>
Are you sure #undefing a function is supported?

-- 
#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:
Subject: Re: #undef function parsing error
Date: 27 Mar 2002 09:53:08
Message: <cvm3auovns5l584ghq82l79mca95nmjamn@4ax.com>
On 27 Mar 2002 09:43:52 -0500, Warp <war### [at] tagpovrayorg> wrote:
>  Are you sure #undefing a function is supported?

6.1.6.2: "Note: Redeclaring functions, directly, is not allowed. The way to do
this is to undef it first."

ABX


Post a reply to this message

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