POV-Ray : Newsgroups : povray.general : Problem with name space for user-defined functions : Re: Problem with name space for user-defined functions Server Time
24 Apr 2024 12:00:43 EDT (-0400)
  Re: Problem with name space for user-defined functions  
From: Kenneth
Date: 4 Apr 2018 06:55:01
Message: <web.5ac4ad1ef0f198f8a47873e10@news.povray.org>
I just did another test...

#declare B = function{0};
#declare B = 0;

This causes the same "...#undef the function first" error-- even though the new
B is not a function. So the error result is not specific to macros.

The documentation about re-defining funtions doesn't mention this particular
behavior. It appears that if B is first assigned to a *function*, that function
'legacy' is still part of B when the attempt is made to re-declare B as
*anything* else, whether as another function or not...unless the original B is
'destroyed' first.


Post a reply to this message

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