POV-Ray : Newsgroups : povray.general : best practice question : best practice question Server Time
19 Apr 2024 22:45:52 EDT (-0400)
  best practice question  
From: jr
Date: 9 Jun 2020 06:10:01
Message: <web.5edf5e77d148238c4d00143e0@news.povray.org>
hi,

I have a macro which expands to an array, eg

#macro mkArr(...)
.....
array [2] {...}
#end

which gets assigned, repeatedly, to the same '#declare'd variable.  is this ok
wrt memory management, or is it better to '#undef' the elements, and or the
array, before replacing it wholesale?  is there a difference?  do 'mixed' arrays
behave same as "normal" arrays?


regards, jr.


Post a reply to this message

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