POV-Ray : Newsgroups : povray.bugreports : Can't #undef a dict item that contains an array or dict : Re: Can't #undef a dict item that contains an array or dict Server Time
11 May 2024 19:55:54 EDT (-0400)
  Re: Can't #undef a dict item that contains an array or dict  
From: ingo
Date: 24 Jun 2023 13:00:00
Message: <web.64972030f8ae749f17bac71e8ffb8ce3@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> I think that may be to do with not being allowed to address "a slice" of an
> array, eg.
>   #undef D["Arr"][0]
>   #undef D["Arr"][1]
> and
>   #undef D["Dict"]["1"]
>
> work "as advertised".
>

Thanks, yes, I had figured that out, but am not happy with it.

#undef D["Arr"][0]
#undef D["Arr"][1]
#ifdef(D["Arr"])
  #debug "D_Arr\n"
#end

This prints "D_arr", so D["Arr"] isn't gone, it's just empty. Don't know how
harmful it is, if at all?

Thanks,
ingo


Post a reply to this message

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